Merge branch 'agave' into staging #13
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: Deploy to production | |
on: | |
push: | |
branches: [ "vesta", "aurigami", "nervos", "agave", "meld"] | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }} | |
ZONE_ID: ${{ secrets.ZONE_ID }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# - name: Extract branch name | |
# shell: bash | |
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
# id: extract_branch | |
- name: Install dependencies | |
run: npm install --force | |
- name: deploy ${GITHUB_REF##*/} | |
run: npm run build-${GITHUB_REF##*/} && node tomlGen.js --name ${GITHUB_REF##*/}-production && npx wrangler publish |