-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #928 from gisaia/ci/release
ci: add release with github action
- Loading branch information
Showing
2 changed files
with
72 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Release ARLAS-wui | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Version to release | ||
required: true | ||
stage: | ||
type: choice | ||
description: Stage of the release | ||
required: true | ||
options: | ||
- beta | ||
- rc | ||
- stable | ||
stage_iteration: | ||
description: Iteration of the release (needed for beta and rc) | ||
required: false | ||
latest: | ||
type: boolean | ||
description: Latest release? | ||
default: true | ||
|
||
run-name: Release ARLAS-wui ${{inputs.version}} ${{inputs.stage}} ${{inputs.stage_iteration}} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
- name: Release | ||
env: | ||
# secrets are defined here : https://github.com/organizations/gisaia/settings/secrets/actions | ||
NPM_EMAIL: ${{ secrets.NPM_EMAIL }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
bash release.sh -version=${{inputs.version}} -s=${{inputs.stage}} -i=${{inputs.stage_iteration}} -ref_branch=${{ steps.extract_branch.outputs.branch }} ${{inputs.latest && ' ' || '--not-latest'}} |
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