diff --git a/.gitea/workflows/default.yml b/.gitea/workflows/default.yml new file mode 100644 index 0000000..972d910 --- /dev/null +++ b/.gitea/workflows/default.yml @@ -0,0 +1,27 @@ +name: Build static content + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + - run: npm install + - run: npm run build + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: dist-files + path: './dist/' \ No newline at end of file