mirror of
https://github.com/KevinMidboe/miljobilen-rss.git
synced 2025-10-29 09:40:22 +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
|
||||||
|
|
||||||
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -9,7 +9,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-rss:
|
generate-rss:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
runner: [ubuntu-latest, self-hosted]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.runner }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: 'read'
|
contents: 'read'
|
||||||
|
|||||||
Reference in New Issue
Block a user