diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..a4297fb --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,29 @@ +name: Publish Svelte Tailwind Library + +on: + push: + branches: + - main + +jobs: + build-and-publish: + runs-on: docker + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + registry-url: https://git.luke-else.co.uk/api/packages/luke-else/npm/ + + - name: Install dependencies + run: pnpm install + + - name: Build package + run: pnpm build + + - name: Publish to Gitea Packages + env: + NODE_AUTH_TOKEN: ${{ secrets.CONTAINER_REGISTRY_PASSKEY }} + run: npm publish --registry https://git.luke-else.co.uk/api/packages/luke-else/npm/ \ No newline at end of file