diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml new file mode 100644 index 0000000..fe89e39 --- /dev/null +++ b/.github/workflows/auto-update.yml @@ -0,0 +1,13 @@ +name: Automatic Updates + +on: + schedule: + - cron: "15 0 * * 5" + workflow_dispatch: + +jobs: + auto-update: + name: Automatic Updates + uses: juitnow/workflows-public/.github/workflows/auto-update.yml@main + secrets: + git_token: ${{ secrets.git_token }} diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml new file mode 100644 index 0000000..a7234c6 --- /dev/null +++ b/.github/workflows/build-pr.yml @@ -0,0 +1,9 @@ +name: Build Pull Request + +on: + pull_request + +jobs: + build-pr: + name: Build Pull Request + uses: juitnow/workflows-public/.github/workflows/build.yml@main diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..0553432 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +name: Publish Pages + +on: + push: + branches: [main] + +jobs: + build: + permissions: + contents: read + pages: write + id-token: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup NodeJS + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Setup Pages + uses: actions/configure-pages@v5 + id: setup + + - name: Build Pages + run: | + npm clean-install + npm run build + env: + VITE_BASE_URL: "${{steps.setup.outputs.base_url}}" + + - name: Upload Pages Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: dist + + - name: Deploy Pages + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..659740f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,12 @@ +name: Release Package + +on: + push: + branches: [main] + +jobs: + release: + name: Release Package + uses: juitnow/workflows-public/.github/workflows/release.yml@main + secrets: + npm_token: ${{ secrets.npm_token }}