Update CI #4

Closed
rgebee wants to merge 99 commits from ci-test into main
Showing only changes of commit edce58a2cc - Show all commits

View File

@ -1,9 +1,11 @@
name: Deploy
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
run:
description: "Deploy artifact to server"
type: boolean
runs-on: selfhost
@ -11,16 +13,17 @@ jobs:
deploy:
needs: build
runs-on: selfhost
if: ${{ inputs.run }}
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
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
tar -xvzf build.tar.gz
- run: ls -la build
- run: ls -la /www/
- run: ls -la /www/svelte/