Files
game-server-watcher/.github/workflows/publish.yml
2022-05-14 18:47:14 +02:00

22 lines
453 B
YAML

name: ☁️ Deploy to the cloud
on:
workflow_dispatch:
push:
branches:
- cloud
jobs:
push:
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 🐙 Add new remote, and push to master
run: |
git remote add cloudrepo ${{ secrets.CLOUD_REPO_URL }}
git push -f cloudrepo ${{ github.ref_name }}:master