mirror of
https://github.com/KevinMidboe/miljobilen-rss.git
synced 2025-12-07 20:08:49 +00:00
add self-hosted runner
This commit is contained in:
26
.github/workflows/generate-rss.yml
vendored
Normal file
26
.github/workflows/generate-rss.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Setup RSS Environment
|
||||
description: Common steps for RSS job
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '21'
|
||||
|
||||
- name: Run Script
|
||||
run: node src/run.js 'solberg' 1;
|
||||
mv rss.xml solberg.xml
|
||||
|
||||
- id: 'auth-to-gcloud'
|
||||
uses: 'google-github-actions/auth@v2'
|
||||
with:
|
||||
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
|
||||
|
||||
- id: 'upload-rss-file'
|
||||
uses: 'google-github-actions/upload-cloud-storage@v2'
|
||||
with:
|
||||
path: 'solberg.xml'
|
||||
destination: 'miljobilen-rss'
|
||||
process_gcloudignore: false
|
||||
|
||||
Reference in New Issue
Block a user