Skip to content

更新gitmodules版本 #7

更新gitmodules版本

更新gitmodules版本 #7

Workflow file for this run

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 --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}