Merge branch 'master' of https://github.com/omsage/fionna #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: goreleaser | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main repository | |
uses: actions/checkout@v2 | |
- name: 'Get Previous tag' | |
id: previoustag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
- name: Initialize submodules | |
run: git submodule update --init --recursive | |
- name: Install dependencies and build frontend | |
working-directory: fionna-web | |
run: | | |
npm install | |
npm run build | |
- name: Archive built frontend | |
uses: actions/upload-artifact@v2 | |
with: | |
name: frontend | |
path: fionna-web/dist # Adjust the path based on your build output | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- | |
name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: replace version | |
run: ver=${{ steps.previoustag.outputs.tag }} && new_ver=${ver:1} && sed -i "s/FIONNA_VERSION/${new_ver}/g" cmd/version.go | |
- | |
name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: release --clean --skip validate | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |