mirror of
https://github.com/KevinMidboe/miljobilen-rss.git
synced 2025-10-29 17:50:23 +00:00
gcloud auth and bucket upload of rss file
This commit is contained in:
19
.github/workflows/update-rss.yml
vendored
19
.github/workflows/update-rss.yml
vendored
@@ -12,9 +12,13 @@ jobs:
|
|||||||
generate-rss:
|
generate-rss:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: 'read'
|
||||||
|
id-token: 'write'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
@@ -24,8 +28,13 @@ jobs:
|
|||||||
- name: Run Script
|
- name: Run Script
|
||||||
run: node run.js
|
run: node run.js
|
||||||
|
|
||||||
- name: List Directory
|
- id: 'auth-to-gcloud'
|
||||||
run: ls -l
|
uses: 'google-github-actions/auth@v2'
|
||||||
|
with:
|
||||||
|
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
|
||||||
|
|
||||||
- name: Cat rss file
|
- id: 'upload-rss-file'
|
||||||
run: cat rss.xml
|
uses: 'google-github-actions/upload-cloud-storage@v2'
|
||||||
|
with:
|
||||||
|
path: 'rss.xml'
|
||||||
|
destination: 'miljobilen-rss'
|
||||||
|
|||||||
Reference in New Issue
Block a user