Skip to content

fix actions

fix actions #10

name: Build and release accweb
on:
push:
tags:
- '*'
jobs:
build-accweb:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout and setup
uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: '^1.21.0'
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_ENV"
- name: Build accweb release
run: chmod u+x ./build/build_release.sh && ./build/build_release.sh ${VERSION}
- uses: ncipollo/release-action@v1
with:
artifacts: 'releases/accweb_${VERSION}.zip'
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}