1f349.com/.github/workflows/build.yml

23 lines
600 B
YAML
Raw Normal View History

2023-07-16 18:18:55 +01:00
name: Build/release
on: push
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v1
2023-07-29 14:45:34 +01:00
- run: sudo wget 'https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64' -O /usr/bin/yq
2023-07-29 14:19:09 +01:00
- name: Build
run: ./compile.sh
2023-07-16 18:18:55 +01:00
- name: Archive
2023-07-29 14:19:09 +01:00
run: tar -czvf upload.tar.gz -C ./build .
2023-07-16 18:18:55 +01:00
- name: Release
2023-11-22 09:22:31 +00:00
run: 'curl --fail -X POST -H "Authorization: Bearer ${{ secrets.DEPLOY }}" -F "upload=@upload.tar.gz" "https://sites.1f349.com/u?site=1f349.com&branch=${{ github.ref_name }}"'