Alter 3 files
Delete `append.yml` Delete `build-deploy.yml` Update `README.md`
This commit is contained in:
parent
238ea5f600
commit
aa5064c266
3 changed files with 1 additions and 96 deletions
41
.github/workflows/append.yml
vendored
41
.github/workflows/append.yml
vendored
|
@ -1,41 +0,0 @@
|
|||
name: Append article to reading list
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
types: ["rl-append"]
|
||||
|
||||
concurrency:
|
||||
group: append-to-reading-list
|
||||
|
||||
jobs:
|
||||
append-to-reading-list:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1
|
||||
|
||||
- name: Append to reading list
|
||||
env:
|
||||
RL_INPUT_JSON: ${{ toJSON(github.event.client_payload) }}
|
||||
run: go run github.com/codemicro/readingList/cli add
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config user.email "readinglistauto@tdpain.net"
|
||||
git config user.name "Automatic update"
|
||||
git add readingList.csv
|
||||
git commit -m "Automated reading list update on $(date)"
|
||||
git push -u origin master
|
||||
|
||||
build-deploy:
|
||||
needs: append-to-reading-list
|
||||
uses: ./.github/workflows/build-deploy.yml
|
||||
secrets: inherit
|
54
.github/workflows/build-deploy.yml
vendored
54
.github/workflows/build-deploy.yml
vendored
|
@ -1,54 +0,0 @@
|
|||
name: Build and deploy site
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
push:
|
||||
paths:
|
||||
- "readingList.csv"
|
||||
- "cli/generator.go"
|
||||
|
||||
concurrency:
|
||||
group: build-deploy
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1
|
||||
|
||||
- name: Run generator
|
||||
run: go run github.com/codemicro/readingList/cli generateSite
|
||||
|
||||
- name: Upload arfefact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: built-site
|
||||
path: _dist
|
||||
retention-days: 1
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: built-site
|
||||
path: site
|
||||
|
||||
- name: Generate deploy bundle
|
||||
run: zip -r ../deploy-bundle.zip *
|
||||
working-directory: site
|
||||
|
||||
- name: Publish site
|
||||
run: "curl -Lf -X POST -u palmatum-service:${{ secrets.ACCESS_TOKEN }} -F siteName=readingList -F archive=@deploy-bundle.zip https://pages.tdpain.net/-/upload"
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
A list of articles I've read. View it here: https://pages.tdpain.net/readingList. Automatically updated by a button I press on another service somewhere else.
|
||||
|
||||
You might find my blog post about this interesting: https://www.tdpain.net/blog/a-year-of-reading
|
||||
You might find my blog post about this interesting (though note that it was written before it's eventual migration to GitLab): https://www.tdpain.net/blog/a-year-of-reading
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue