Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Jun 17, 2024
1 parent e342694 commit 34ebdb3
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,30 @@ jobs:
- name: npm install
run: npm install

- name: packing
- name: dist
run: |
echo "dist-ing"
mkdir -p dist
echo "tarball packing"
npx [email protected] pack tarballs
- name: pack
id: pack
run: |
PACK_OUTPUT=$(npx [email protected] pack tarballs)
echo "$PACK_OUTPUT"
echo "::set-output name=version::$(echo "$PACK_OUTPUT" | grep 'dotenv-vault@' | awk '{print $2}')"
echo "::set-output name=sha::$(echo "$PACK_OUTPUT" | grep 'shasum' | awk '{print $3}')"
- name: upload
run: |
npx [email protected] upload
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: promote
run: |
PROMOTE_VERSION=$(echo ${{ steps.pack.outputs.version }})
PROMOTE_SHA=$(echo ${{ steps.pack.outputs.sha }})
npx [email protected] promote --version "$PROMOTE_VERSION" --sha "$PROMOTE_SHA"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 34ebdb3

Please sign in to comment.