37 lines
689 B
YAML
37 lines
689 B
YAML
|
|
on:
|
||
|
|
push:
|
||
|
|
branches:
|
||
|
|
- dev
|
||
|
|
|
||
|
|
env:
|
||
|
|
EXEC: arimelody-web
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
deploy:
|
||
|
|
runs-on: docker
|
||
|
|
steps:
|
||
|
|
- name: Checkout repository
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
|
||
|
|
- name: Set up Go
|
||
|
|
uses: actions/setup-go@v4
|
||
|
|
with:
|
||
|
|
go-version: '^1.25.1'
|
||
|
|
|
||
|
|
- name: Run tests
|
||
|
|
run: go test -v ./model
|
||
|
|
|
||
|
|
- name: Build binary
|
||
|
|
run: make build
|
||
|
|
|
||
|
|
- name: Bundle tarball
|
||
|
|
run: make bundle
|
||
|
|
|
||
|
|
- name: Set up SSH keys
|
||
|
|
uses: webfactory/ssh-agent@v0.9.0
|
||
|
|
with:
|
||
|
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||
|
|
|
||
|
|
- name: Copy to production server
|
||
|
|
run: echo "we'll just pretend it works lol"
|