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:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: 'read'
|
||||
id-token: 'write'
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v2
|
||||
@@ -24,8 +28,13 @@ jobs:
|
||||
- name: Run Script
|
||||
run: node run.js
|
||||
|
||||
- name: List Directory
|
||||
run: ls -l
|
||||
- id: 'auth-to-gcloud'
|
||||
uses: 'google-github-actions/auth@v2'
|
||||
with:
|
||||
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
|
||||
|
||||
- name: Cat rss file
|
||||
run: cat rss.xml
|
||||
- id: 'upload-rss-file'
|
||||
uses: 'google-github-actions/upload-cloud-storage@v2'
|
||||
with:
|
||||
path: 'rss.xml'
|
||||
destination: 'miljobilen-rss'
|
||||
|
||||
Reference in New Issue
Block a user