Skip to content

Commit

Permalink
Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pfumagalli committed Nov 6, 2024
1 parent 0d1704b commit 9b3e390
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -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 }}
9 changes: 9 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -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
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 9b3e390

Please sign in to comment.