diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml new file mode 100644 index 0000000..3777628 --- /dev/null +++ b/.github/workflows/build-package.yml @@ -0,0 +1,32 @@ +name: Build package + +on: + pull_request: + branches: + - main + paths-ignore: + # Config files + - ".github/**" + - ".vscode/**" + - ".gitignore" + # Documentation + - "docs/**" + - "*.md" + - "*.qmd" + - "justfile" + # Website files + - _quarto.yml + - index.qmd + - _publish.yml + - _extensions/** + push: + branches: + - main + +jobs: + lint: + uses: seedcase-project/.github/.github/workflows/reusable-lint-python.yml@main + + test: + uses: seedcase-project/.github/.github/workflows/reusable-test-python.yml@main + needs: lint diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/build-website.yml similarity index 60% rename from .github/workflows/deploy-docs.yml rename to .github/workflows/build-website.yml index 4001fa7..f6f4e9c 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/build-website.yml @@ -1,4 +1,4 @@ -name: Deploy documentation as website +name: Build website of documentation on: push: @@ -12,7 +12,7 @@ on: - _extensions/** jobs: - build-deploy-docs: - uses: seedcase-project/.github/.github/workflows/deploy-docs-with-python.yml@main + build-website: + uses: seedcase-project/.github/.github/workflows/reusable-build-docs-with-python.yml@main secrets: netlify-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml deleted file mode 100644 index 3372eac..0000000 --- a/.github/workflows/deploy-demo.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Deploy Demo App - -on: - push: - branches: - - main - paths-ignore: - # Config files - - ".github/**" - - ".vscode/**" - - ".gitignore" - # Documentation - - "docs/**" - - "*.md" - - "*.qmd" - - "justfile" - # Website files - - _quarto.yml - - index.qmd - - _publish.yml - - _extensions/** - -jobs: - lint: - uses: seedcase-project/.github/.github/workflows/lint-python.yml@main - - test: - uses: seedcase-project/.github/.github/workflows/test.yml@main - needs: lint - - # deploy: - # name: Deploy app - # runs-on: ubuntu-latest - # needs: test - - # concurrency: deploy-group # optional: ensure only one action runs at a time - # steps: - # - uses: actions/checkout@v4 - - # - name: Deploy to Fly.io - # uses: superfly/flyctl-actions/setup-flyctl@master - # - run: flyctl deploy --remote-only - # env: - # FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml deleted file mode 100644 index 02a497d..0000000 --- a/.github/workflows/deploy-pr-preview.yml +++ /dev/null @@ -1,65 +0,0 @@ -# From: https://github.com/superfly/fly-pr-review-apps -name: Deploy PR Preview App - -on: - pull_request: - types: [opened, reopened, synchronize] - branches: - - main - paths-ignore: - # Config files - - ".github/**" - - ".vscode/**" - - ".gitignore" - # Documentation - - "docs/**" - - "*.md" - - "*.qmd" - - "justfile" - # Website files - - _quarto.yml - - index.qmd - - _publish.yml - - _extensions/** - -# env: -# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} -# FLY_REGION: ams -# FLY_ORG: seedcase-project - -jobs: - lint: - uses: seedcase-project/.github/.github/workflows/lint-python.yml@main - - test: - uses: seedcase-project/.github/.github/workflows/test.yml@main - needs: lint - - # staging-app: - # runs-on: ubuntu-latest - # needs: test - - # # Only run one deployment at a time per PR. - # concurrency: - # group: pr-${{ github.event.number }} - - # # Create a GitHub deployment environment per staging app so it shows up - # # in the pull request UI. - # environment: - # name: pr-${{ github.event.number }} - # url: ${{ steps.deploy.outputs.url }} - - # steps: - # - uses: actions/checkout@v4 - - # # Need to install direct from source, since their action is outdated - # - name: Install Fly CLI - # run: | - # curl -L https://fly.io/install.sh | sh - # echo "/home/runner/.fly/bin" >> $GITHUB_PATH - - # - name: Deploy preview of PR - # id: deploy - # uses: ... - # with: - # name: ${{ github.event.repository.name }}-pr-${{ github.event.number }} diff --git a/.github/workflows/puml-to-svg.yml b/.github/workflows/puml-to-svg.yml index 3af76cc..3a2b8c9 100644 --- a/.github/workflows/puml-to-svg.yml +++ b/.github/workflows/puml-to-svg.yml @@ -7,6 +7,6 @@ on: jobs: generate-plantuml: - uses: seedcase-project/.github/.github/workflows/puml-to-svg.yml@main + uses: seedcase-project/.github/.github/workflows/reusable-puml-to-svg.yml@main secrets: github-token: ${{ secrets.GITHUB_TOKEN }}