Skip to content

Use gh actions for tag releases #27

Use gh actions for tag releases

Use gh actions for tag releases #27

Workflow file for this run

name: release-lp
on:
push:
tags:
- 'release-lp*'
branches:
- 'tagged-releases'
jobs:
release-lp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup SSH Key and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo "$SSH_PRIVATE_KEY" > ~/.ssh/synthetix-team
chmod 600 ~/.ssh/synthetix-team
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add ~/.ssh/synthetix-team
- run: git config --global user.email engineering@snxdao.io
- run: git config --global user.name synthetix-team
- name: Test commit
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
git commit --allow-empty --message "Test commit"
git push
- run: git checkout "${{ github.sha }}"
- run: git branch release/test2
- run: git checkout release/test2
- run: git push --set-upstream --force origin release/test2
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock