mirror of
https://github.com/1f349/1f349.com.git
synced 2024-11-14 15:41:44 +00:00
23 lines
593 B
YAML
23 lines
593 B
YAML
name: Build/release
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v1
|
|
|
|
- run: sudo wget 'https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64' -O /usr/bin/yq
|
|
|
|
- name: Build
|
|
run: ./compile.sh
|
|
|
|
- name: Archive
|
|
run: tar -czvf upload.tar.gz -C ./build .
|
|
|
|
- name: Release
|
|
run: 'curl -X POST -H "Authorization: Bearer ${{ secrets.DEPLOY }}" -F "upload=@upload.tar.gz" "https://sites.1f349.net/u?site=1f349.net&branch=${{ github.ref_name }}"'
|