Skip to content

Commit

Permalink
Use intermediate branch
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsonzimmermann committed Apr 22, 2024
1 parent ddd01b7 commit 6f40b7f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 27 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Publish content before merging

on:
merge_group:
push:
# to be changed to 'main'
branches: ['publish-article-pipeline']

jobs:
publish:
check-unpublished:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npm run build:utils
- run: npm run posts:publish

- name: Should publish
id: should-publish
run: echo "::set-output name=should-publish::$([[ -d "content/posts/unpublished" ]] && echo true || echo false)"

publish:
needs: check-unpublished
if: ${{needs.check-unpublished.outputs.should-publish}}
steps:
- run: echo "run"
18 changes: 0 additions & 18 deletions .github/workflows/pr.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:

# to be changed to prod
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
Expand Down

0 comments on commit 6f40b7f

Please sign in to comment.