Skip to content

Commit

Permalink
ci: provide workflow dispatch for deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
tynn committed Apr 23, 2023
1 parent 3625595 commit 37ae620
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy

on: workflow_dispatch

jobs:
deploy:
runs-on: ubuntu-latest
environment: asapi
steps:
- uses: actions/checkout@v3
- run: git remote add release "https://$USERNAME:[email protected]/asapi.git"
env:
USERNAME: ${{ secrets.GIGALIXIR_USERNAME }}
PASSWORD: ${{ secrets.GIGALIXIR_PASSWORD }}
- run: |
git config --global user.name $GITHUB_ACTOR
git config --global user.email [email protected]
git checkout --orphan deploy
git commit -m "deploy current HEAD"
git push -f release HEAD:master

0 comments on commit 37ae620

Please sign in to comment.