All checks were successful
default / build-and-deploy (push) Successful in 33s
37 lines
No EOL
878 B
YAML
37 lines
No EOL
878 B
YAML
name: default
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Generate
|
|
uses: docker://golang:1.23-alpine
|
|
with:
|
|
entrypoint: /bin/sh
|
|
args: -c "apk add --no-cache curl make bash && make all"
|
|
|
|
- name: Prepare the build
|
|
run: mv .pub /tmp/build
|
|
|
|
- name: Checkout gitea-pages reference
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: gitea-pages
|
|
|
|
- name: Publish
|
|
run: |
|
|
git config user.name "${{ env.GITHUB_ACTOR }}"
|
|
git config user.email "${{ secrets.EMAIL }}"
|
|
mv .git /tmp/build/
|
|
cd /tmp/build
|
|
git add .
|
|
git commit -a -m "`date +'%Y-%m-%d %R:%S'` > deploy"
|
|
git push -u origin gitea-pages |