feature automated deployment now working! [deploy]
in order to get it working make sure [deploy] is inside the commit title
This commit is contained in:
parent
8b992b53d8
commit
2333f46b78
1 changed files with 7 additions and 5 deletions
|
|
@ -9,15 +9,17 @@ jobs:
|
|||
deploy:
|
||||
runs-on: nix
|
||||
needs: check
|
||||
if: contains(github.event.head_commit.message, 'deploy:')
|
||||
if: contains(github.event.head_commit.message, '[deploy]')
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- run: nix develop
|
||||
- name: Setup SSH key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "$SSHKEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
chmod 700 ~/.ssh
|
||||
echo "$SSHKEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" >> ~/.ssh/config
|
||||
|
||||
env:
|
||||
SSHKEY: ${{ secrets.SSHKEY }}
|
||||
- run: deploy
|
||||
- run: nix develop .#default --skip-check -c deploy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue