This commit is contained in:
27
.gitea/workflows/deploy.yml
Normal file
27
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
runs-on: selfhost
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: selfhost
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get artifact
|
||||
run: |
|
||||
curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \
|
||||
https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz > build.tar.gz
|
||||
echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz
|
||||
- name: Extract artifact
|
||||
run: |
|
||||
tar -xvzf build.tar.gz
|
||||
- run: ls -la build
|
||||
- run: ls -la /www/
|
||||
- run: ls -la /www/quartznet-info/
|
||||
- name: Clean Deploy Area
|
||||
run: rm -rf /www/quartznet-info/build
|
||||
- name: Deploy
|
||||
run: mv build /www/quartznet-info/
|
||||
Reference in New Issue
Block a user