Merge pull request #2782 from Pilzinsel64/release/29.0.2snap1 #88
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: Deploy to Launchpad | |
on: | |
push: | |
# Only applies to our protected branches and tags | |
branches: | |
- master | |
- develop | |
- '[0-9]+' | |
tags: | |
- '*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: launchpad | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
# Fetch all history so we can push | |
fetch-depth: 0 | |
- name: Setup git | |
run: | | |
git config user.name "CI Bot" | |
git config user.email "nextcloud-snappy-bot@git.launchpad.net" | |
git remote add deploy git+ssh://nextcloud-snappy-bot@git.launchpad.net/nextcloud-snap | |
- name: Setup SSH | |
uses: webfactory/ssh-agent@v0.7.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Setup launchpad keys | |
run: echo "${{ vars.LAUNCHPAD_SSH_PUBLIC_KEYS }}" > ~/.ssh/known_hosts | |
- name: Start Launchpad build | |
run: git push deploy "$GITHUB_REF_NAME" |