Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
parent
038ad7a16d
commit
1242e804cf
1 changed files with 10 additions and 6 deletions
|
@ -1,19 +1,23 @@
|
|||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ubuntu:latest
|
||||
name: Deploy blog to deuterium
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
MACHINE: deuterium
|
||||
steps:
|
||||
- name: Setup Go 1.19
|
||||
id: go
|
||||
uses: actions/setup-go@v2
|
||||
uses: https://code.forgejo.org/actions/setup-go@v5
|
||||
- name: Setup Tailscale
|
||||
id: tailscale
|
||||
uses: tailscale/github-action@v2
|
||||
uses: https://github.com/tailscale/github-action@v2
|
||||
with:
|
||||
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
|
||||
oauth-secret: ${{ secrets.TS_OAUTH_CLIENT_SECRET }}
|
||||
|
@ -32,7 +36,7 @@ jobs:
|
|||
|
||||
- name: Fetch code
|
||||
id: fetch
|
||||
uses: actions/checkout@v1
|
||||
uses: https://code.forgejo.org/actions/checkout@v1
|
||||
|
||||
- name: Compile blog binary
|
||||
id: compile
|
Loading…
Add table
Add a link
Reference in a new issue