Skip to content

Commit

Permalink
- chore: use deploy key to run release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
le0m committed Mar 12, 2020
1 parent 08860c2 commit 633c691
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ jobs:
- run: yarn test
- run: yarn build
- name: Commit and tag dist files
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
run: |
eval "$(ssh-agent -s)"
echo "$DEPLOY_KEY" | ssh-add -
mkdir -p ~/.ssh/
ssh-keyscan github.com >> ~/.ssh/known_hosts
git config --local user.name "${GITHUB_ACTOR}"
git config --local user.email "${GITHUB_ACTOR}@github.com"
yarn version --minor --no-git-tag-version
git add -A
TAG="v$(node -p "require('./package.json').version")"
git commit -m "- chore: version bump ($TAG)"
git commit -m "- chore: version bump ($TAG) [skip ci]"
git tag "$TAG-dev"
git push --tags origin $GITHUB_REF
ssh-agent -k

0 comments on commit 633c691

Please sign in to comment.