Skip to content

Commit

Permalink
update tagging name
Browse files Browse the repository at this point in the history
  • Loading branch information
phildenhoff committed Jan 16, 2024
1 parent 31fab4c commit a928bbe
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
const { data } = await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: `app-v${process.env.PACKAGE_VERSION}`,
name: `Desktop App v${process.env.PACKAGE_VERSION}`,
tag_name: `v${process.env.PACKAGE_VERSION}-${new Date().toISOString().split('T')[0].replace(/-/g, '')}-${process.env.GITHUB_SHA}`,
name: `CI v${process.env.PACKAGE_VERSION}-${new Date().toISOString().split('T')[0].replace(/-/g, '')}-${process.env.GITHUB_SHA}`,
body: 'Take a look at the assets to download and install this app.',
draft: true,
prerelease: false
prerelease: true
})
return data.id
Expand Down Expand Up @@ -73,8 +73,11 @@ jobs:
cargo --version;
bun tauri --version
- name: Run build
run: bun run build
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ needs.create_release.outputs.release_id }}

publish-release:
permissions:
Expand All @@ -94,6 +97,6 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
release_id: process.env.release_id,
draft: false,
prerelease: false
draft: true,
prerelease: true
})

0 comments on commit a928bbe

Please sign in to comment.