Test inputs for the deploy workflow

This commit is contained in:
ChrisDill 2023-09-09 09:23:21 +01:00
parent 7ba9068f0b
commit edce58a2cc

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/