fix releasing alias
This commit is contained in:
parent
813c952420
commit
f12de4ea23
2 changed files with 6 additions and 6 deletions
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
|
@ -29,9 +29,6 @@ jobs:
|
|||
run: pnpx zardoy-release empty --skip-github --output-file assets/release.json
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get releasing alias
|
||||
run: node scripts/githubActions.mjs getReleasingAlias
|
||||
id: alias
|
||||
- name: Download Generated Sounds map
|
||||
run: node scripts/downloadSoundsMap.mjs
|
||||
- run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --prod
|
||||
|
|
@ -48,8 +45,10 @@ jobs:
|
|||
with:
|
||||
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --prod
|
||||
id: deploy
|
||||
- name: Get releasing alias
|
||||
run: node scripts/githubActions.mjs getReleasingAlias
|
||||
id: alias
|
||||
- name: Set deployment alias
|
||||
if: ${{ steps.alias.outputs.alias != '' && steps.alias.outputs.alias != 'mcraft.fun' && steps.alias.outputs.alias != 's.mcraft.fun' }}
|
||||
run: |
|
||||
for alias in $(echo ${{ steps.alias.outputs.alias }} | tr "," "\n"); do
|
||||
vercel alias set ${{ steps.deploy.outputs.stdout }} $alias --token=${{ secrets.VERCEL_TOKEN }} --scope=zaro
|
||||
|
|
|
|||
|
|
@ -22,9 +22,10 @@ const fns = {
|
|||
const tag = releaseJson.latestTag
|
||||
const [major, minor, patch] = tag.replace('v', '').split('.')
|
||||
if (major === '0' && minor === '1') {
|
||||
return final(`v${patch}`)
|
||||
setOutput('alias', final(`v${patch}`))
|
||||
} else {
|
||||
setOutput('alias', final(tag))
|
||||
}
|
||||
return final(tag)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue