Skip to content

Commit

Permalink
Merge pull request #33 from yosepkim/refactor-gitaction
Browse files Browse the repository at this point in the history
debug code
  • Loading branch information
yosepkim authored Nov 3, 2023
2 parents eeea5f5 + 173befa commit e12c457
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ jobs:
run: tar cvzf tarball.tgz main.js bundle.json edgekv.js edgekv_tokens.js services
- name: Push EdgeWorker code
run: |
akamai --version
akamai --accountkey ${{ vars.ACCOUNT_KEY }} edgeworkers upload --bundle tarball.tgz ${{ vars.EW_ID }}
VERSION=$(grep "edgeworker-version" bundle.json | grep -Eo '"[0-9\.]+"')
echo "akamai edgeworkers activate 80521 staging "0.40" --accountkey 1-5BYUG1:1-8BYUX"
akamai edgeworkers activate 80521 staging "0.40" --accountkey 1-5BYUG1:1-8BYUX
akamai edgeworkers activate ${{ vars.EW_ID }} staging $VERSION --accountkey ${{ vars.ACCOUNT_KEY }}
push-to-staging:
needs: deploy
Expand All @@ -38,7 +35,7 @@ jobs:
- name: Activate to staging
run: |
VERSION=$(grep "edgeworker-version" bundle.json | grep -Eo '"[0-9\.]+"')
akamai --accountkey ${{ vars.ACCOUNT_KEY }} edgeworkers activate ${{ vars.EW_ID }} staging $VERSION
akamai edgeworkers activate ${{ vars.EW_ID }} staging $VERSION --accountkey ${{ vars.ACCOUNT_KEY }}
push-to-production:
needs: push-to-staging
Expand Down

0 comments on commit e12c457

Please sign in to comment.