v1.82.0 #566
Workflow file for this run
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
name: Release | |
on: release | |
jobs: | |
DeployRelease: | |
name: deploy a mozaic release | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
deployments: write | |
env: | |
HUSKY: 0 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Extract Tag | |
id: gettag | |
shell: bash | |
run: echo "::set-output name=branch::$(echo ${{ github.ref }} | iconv -t ASCII | sed -r 's/[^a-zA-Z0-9]+//g' | sed -r 's/refstags//g' | sed -r 's/^-+\\|-+$//g' | tr A-Z a-z)" | |
- run: npm install yarn -g | |
- run: yarn install | |
- run: yarn lerna | |
- name: Build a production website | |
run: yarn build | |
env: | |
GH_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: deployment | |
uses: bobheadxi/deployments@v1 | |
id: deployment | |
with: | |
step: start | |
token: ${{ secrets.GITHUB_TOKEN }} | |
env: production | |
ref: ${{ github.head_ref }} | |
- id: 'auth' | |
name: 'Authenticate to Google Cloud' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
workload_identity_provider: ${{ secrets.GCP_WI_PROVIDER }} | |
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }} | |
- id: 'deploy' | |
name: 'Deploy Tag' | |
uses: 'google-github-actions/deploy-appengine@v1' | |
with: | |
project_id: mozaic-design-system-dtrp | |
deliverables: app.yaml | |
version: ${{ steps.gettag.outputs.branch }} | |
promote: true | |
- name: Update deployment status | |
uses: bobheadxi/deployments@v1 | |
with: | |
step: finish | |
token: ${{ secrets.GITHUB_TOKEN }} | |
status: ${{ job.status }} | |
env: ${{ steps.deployment.outputs.env }} | |
deployment_id: ${{ steps.deployment.outputs.deployment_id }} | |
env_url: https://mozaic.adeo.cloud |