Skip to content

Commit

Permalink
.github/go: update blog posts automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 28, 2024
1 parent b092115 commit 51b2061
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:

build:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4

Expand All @@ -19,7 +23,16 @@ jobs:
with:
go-version: '1.20'

- name: Update
run: make

- name: Publish
run: go run ./blog.go -publish
env:
MATAROA_TOKEN: ${{ secrets.MATAROA_TOKEN }}

- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "README/rss: update"

3 changes: 3 additions & 0 deletions 2024-07-28/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Test

This is a test post.

0 comments on commit 51b2061

Please sign in to comment.