WIP: enabling checkout on right branch #3
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: azion-web-kit | |
on: | |
push: | |
branches: | |
- UXE-1067--public-storybok | |
- main | |
jobs: | |
deploy: | |
name: DEPLOY | prod | |
runs-on: self-hosted | |
container: | |
image: ubuntu:latest | |
steps: | |
- name: CHECKOUT | |
uses: actions/checkout@v3 | |
with: | |
repository: aziontech/azion-web-kit | |
ref: UXE-1067--public-storybok | |
path: '.' | |
clean: true | |
fetch-depth: '0' | |
lfs: 'false' | |
- name: PRE INSTALL | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.6.1 | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@aziontech' | |
always-auth: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_SECRET }} | |
- name: INSTALLING DEPENDENCIES | |
run: npm install | |
- name: POST INSTALLING DEPENDENCIES | |
run: npm run postinstall | |
- name: BUILDING STORYBOOK | |
run: npm run build-storybook | |
# - name: BUILD | |
# run: npm run build && mv dist/* ./ | |
# - name: PREPARE TO DEPLOYMENT | |
# run: rm -rf .nvmrc .cloudcannon cloudcannon.config.yml .astro .github dist node_modules src .editorconfig .gitignore astro.config.mjs LICENSE package-lock.json package.json README.md tsconfig.json | |
# - name: DEPLOYMENT | |
# uses: patrickwyler/gcs-bucket-sync-action@1.3 | |
# with: | |
# secrets: ${{ secrets.GCP_EXP_ENG }} | |
# bucket: azsite |