-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,28 +4,19 @@ on: | |
push: | ||
tags: | ||
- 'release-lp*' | ||
branches: | ||
- 'tagged-releases' | ||
# branches: | ||
# - 'tagged-releases' | ||
|
||
jobs: | ||
release-lp: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# # Setup SSH Deploy key fpr current repo | ||
# - run: mkdir -p ~/.ssh | ||
# - run: echo "${{secrets.SSH_PRIVATE_KEY}}" > "$HOME/.ssh/id_rsa" | ||
# - run: chmod 600 "$HOME/.ssh/id_rsa" | ||
# - run: ssh-keyscan github.com >> "$HOME/.ssh/known_hosts" | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ssh-key: '${{secrets.SSH_PRIVATE_KEY}}' | ||
# Update git URL to use ssh instead of http | ||
#- run: git remote set-url origin "[email protected]:${{github.repository}}.git" | ||
- run: git config user.email [email protected] | ||
- run: git config user.name synthetix-team | ||
- run: git checkout "${{ github.sha }}" | ||
- run: git branch release/lp1 | ||
- run: git checkout release/lp1 | ||
- run: git push --set-upstream --force origin release/lp1 | ||
- run: git branch release/lp | ||
- run: git checkout release/lp | ||
- run: git push --set-upstream --force origin release/lp |