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

26 lines
605 B
YAML
Raw Normal View History

2023-10-19 23:17:24 +01:00
name: Build/release
on: [push]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn
- run: yarn build
- name: Archive
run: tar -czvf upload.tar.gz -C ./dist .
- name: Release
2023-11-03 09:31:35 +00:00
run: 'curl -X POST -H "Authorization: Bearer ${{ secrets.DEPLOY }}" -F "upload=@upload.tar.gz" "https://sites.1f349.com/u?site=admin.1f349.com&branch=${{ github.ref_name }}"'