diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 4a97465..a967548 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,5 +1,11 @@ name: Build -on: [push] +on: + push: + branches: + - master + pull_request: + branches: + - master runs-on: ubuntu-latest diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/deploy.yml similarity index 50% rename from .gitea/workflows/release.yml rename to .gitea/workflows/deploy.yml index d2aa0d5..b4efe91 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/deploy.yml @@ -1,13 +1,15 @@ -name: Build +name: Deploy + on: push: tags: - '*' -runs-on: ubuntu-latest +runs-on: ubuntu-latest:host jobs: - build: + deploy: + needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -19,8 +21,7 @@ jobs: run: npm run check - name: ๐Ÿ”จ Build project run: npm run build - - name: ๐Ÿ“ฆ Zip project - run: tar -czf build.zip build - - name: โ˜๏ธ Upload artifact - run: | - curl -T build.zip -H 'Authorization: token ${{ secrets.PACKAGE_TOKEN }}' 'https://minijack@git.quartznet.info/api/packages/quartznet/generic/quartznet/${{ gitea.ref }}/quartznet-${{ gitea.ref }}.zip' + - name: ๐Ÿงน Clean Deploy Area + run: rm -rf /www/svelte/build + - name: ๐Ÿ“ฆ Deploy + run: mv build /www/svelte/