Update CI #4
@ -1,9 +1,11 @@
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
tags:
|
inputs:
|
||||||
- '*'
|
run:
|
||||||
|
description: "Deploy artifact to server"
|
||||||
|
type: boolean
|
||||||
|
|
||||||
runs-on: selfhost
|
runs-on: selfhost
|
||||||
|
|
||||||
@ -11,16 +13,17 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: selfhost
|
runs-on: selfhost
|
||||||
|
if: ${{ inputs.run }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: get artifact
|
- name: get artifact
|
||||||
run: |
|
run: |
|
||||||
curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \
|
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
|
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
|
echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz
|
||||||
- name: extract artifact
|
- name: extract artifact
|
||||||
run: |
|
run: |
|
||||||
tar -xvzf build.tar.gz
|
tar -xvzf build.tar.gz
|
||||||
- run: ls -la build
|
- run: ls -la build
|
||||||
- run: ls -la /www/
|
- run: ls -la /www/
|
||||||
- run: ls -la /www/svelte/
|
- run: ls -la /www/svelte/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user