fj/.forgejo/workflows/build.yml

34 lines
942 B
YAML
Raw Normal View History

on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
2025-02-05 11:05:14 +01:00
- name: Setup SSH
run: |
mkdir ~/.ssh
chmod 700 ~/.ssh
echo "${{ secrets.ALTAIR_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p 999 tehga.me >> ~/.ssh/known_hosts
ssh-keyscan -p 999 doradus.tehga.me >> ~/.ssh/known_hosts
2025-02-05 11:05:14 +01:00
- name: Checkout
run: git clone --depth 1 ssh://gitea@tehga.me:999/wasp/fj.git --branch main --single-branch /workdir
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: '/workdir/go.mod'
check-latest: true
cache-dependency-path: "/workdir/**/*.sum"
2025-02-05 11:05:14 +01:00
- name: Build
run: go build
working-directory: /workdir
2025-02-05 11:05:14 +01:00
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
2025-02-05 11:05:14 +01:00
name: fj.zip
path: /workdir/fj