Snap stable build config for 4.5.2 #35
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
name: Launchpad | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Launchpad Deploy SSH Key | |
env: | |
LAUNCHPAD_DEPLOY_KEY: ${{ secrets.LAUNCHPAD_DEPLOY_KEY }} | |
run: | | |
mkdir -p ~/.ssh | |
ssh-keyscan git.launchpad.net >> ~/.ssh/known_hosts | |
eval "$(ssh-agent -s)" | |
echo "${LAUNCHPAD_DEPLOY_KEY}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-add ~/.ssh/id_rsa | |
- name: Mirror to Launchpad | |
run: | | |
git clone --mirror https://github.com/Warzone2100/snap-stable-build.git | |
cd snap-stable-build.git | |
git push --mirror git+ssh://[email protected]/warzone2100-stable-snap | |
echo "Done." | |
- name: Cleanup | |
run: | | |
rm ~/.ssh/id_rsa |