Skip to content

planete.postgresql.fr #836

planete.postgresql.fr

planete.postgresql.fr #836

---
name: "planete.postgresql.fr"
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
- cron: '23 */4 * * *'
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: go build -v ./...
- name: Create site directory
run: mkdir _site
- name: Run
run: go run rsscombine.go > _site/feed.atom
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site