Debug github cd variables #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: CD | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: | |
- test-cd | |
push: | |
branches: | |
- test-cd # dont run cd until pageship deployment with github OIDC token is resolved | |
jobs: | |
cd: | |
name: cd | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm ci | |
- name: Set env to staging | |
run: | | |
if [[ "${{ github.ref_name }}" == "main" ]]; then | |
echo "ENV=dev" >> $GITHUB_ENV | |
elif [[ "${{ github.ref_name }}" == "production" ]]; then | |
echo "ENV=production" >> $GITHUB_ENV | |
fi | |
- name: Build html | |
run: npm run build | |
- name: Debug github actions env variables | |
run: | | |
echo ${ACTIONS_RUNTIME_TOKEN} | |
echo ${ACTIONS_ID_TOKEN_REQUEST_URL} | |
echo $ACTIONS_RUNTIME_TOKEN | |
echo $ACTIONS_ID_TOKEN_REQUEST_URL | |
- name: Deploy | |
env: | |
PAGESHIP_API: https://api.pages.pandawork.com | |
run: make deploy |