Skip to content

Commit

Permalink
Merge branch 'release/0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
vclass committed Sep 5, 2024
2 parents a660868 + c5227eb commit 06be3f8
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,30 @@ on:
- "*"

jobs:
create-release:
runs-on: ubuntu-latest
outputs:
RELEASE_UPLOAD_ID: ${{ steps.create_release.outputs.id }}

steps:
- uses: actions/checkout@v4
- name: Get version
id: get_release_version
shell: bash
run: |
echo "using version tag ${GITHUB_REF:10}"
echo "VERSION=${GITHUB_REF:10}" >> $GITHUB_OUTPUT
- name: Release
id: create_release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body: "See the assets to download this version and install."
name: "MaaBo v${{ steps.get_release_version.outputs.VERSION }}"
tag_name: "${{ steps.get_release_version.outputs.VERSION }}"

publish-tauri:
needs: create-release
permissions:
contents: write
strategy:
Expand All @@ -25,15 +48,18 @@ jobs:
- uses: actions/checkout@v4

- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
id: get_build_version
shell: bash
run: |
echo "using version tag ${GITHUB_REF:10}"
echo "VERSION=${GITHUB_REF:10}" >> $GITHUB_OUTPUT
- name: Set app version
uses: MathieuSoysal/[email protected]
with:
file: src-tauri/Cargo.toml
old-string: version = "0.0.0"
new-string: version = "${{ steps.get_version.outputs.VERSION }}"
new-string: version = "${{ steps.get_build_version.outputs.VERSION }}"

- name: setup node
uses: actions/setup-node@v4
Expand Down Expand Up @@ -61,6 +87,7 @@ jobs:
tagName: app-v__VERSION__
releaseName: "MaaBo v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
releaseDraft: false
prerelease: false
args: ${{ matrix.args }}
args: ${{ matrix.args }}
releaseId: ${{ needs.create-release.outputs.id }}

0 comments on commit 06be3f8

Please sign in to comment.