Skip to content

Uncomment CI push of generated files #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: deploy
on:
push:
tags:
- '*.*.*'
- "*.*.*"

env:
OWNER: scala
Expand All @@ -29,13 +29,15 @@ jobs:
run: yarn run github-changes --token ${{ secrets.GITHUB_TOKEN }} --owner $OWNER --repository $REPOSITORY --branch $RELEASE_BRANCH --no-merges --title "Scala Syntax (official) Changelog"
- run: yarn build
- run: yarn test
# - name: Commit generated files
# run: |
# git config --global user.name "Scala bot"
# git config --global user.email "$GITHUB_RUN_NUMBER@$GITHUB_SHA"
# git commit -am "Release ${GITHUB_REF#refs/*/}"
# git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
# git push origin HEAD:$RELEASE_BRANCH

# Comment this out if it causes problems...
- name: Commit generated files
run: |
git config --global user.name "Scala bot"
git config --global user.email "$GITHUB_RUN_NUMBER@$GITHUB_SHA"
git commit -am "Release ${GITHUB_REF#refs/*/}"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git push origin HEAD:$RELEASE_BRANCH

- name: Release extension
run: yarn vscode:publish --pat ${{ secrets.VS_MARKETPLACE_TOKEN }}
Expand Down