Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Fix escaping in RSS feed files #23

Fix escaping in RSS feed files

Fix escaping in RSS feed files #23

name: Build and Deploy Sites
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
files_changed:
name: Get changed files
runs-on: ubuntu-latest
outputs:
brandonb_ca: ${{ steps.changes.outputs.brandonb_ca }}
ve7tzb_ca: ${{ steps.changes.outputs.ve7tzb_ca }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
brandonb_ca:
- 'brandonb.ca/**'
ve7tzb_ca:
- 've7tzb.ca/**'
build-brandonb_ca:
name: Build and Deploy brandonb.ca
runs-on: ubuntu-latest
needs:
- files_changed
if: ${{ needs.files_changed.outputs.brandonb_ca == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: .awspublish-brandonb-web-media
key: ${{ runner.os }}-awspublish-cache-${{ hashFiles('**/.awspublish-brandonb-web-media') }}
restore-keys: |
${{ runner.os }}-awspublish-cache-
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3'
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install ruby dependencies
run: gem install bundler && bundle install
- name: Install js dependencies
run: npm ci
- name: Build and deploy
run: npm run brandonb.ca:deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
- uses: sarisia/actions-status-discord@v1
if: success()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "Successfully deployed brandonb.ca"
color: 0x28a745
- uses: sarisia/actions-status-discord@v1
if: failure()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "Failed to deploy brandonb.ca"
color: 0xdc3545
build-ve7tzb_ca:
name: Build and Deploy ve7tzb.ca
runs-on: ubuntu-latest
needs:
- files_changed
if: ${{ needs.files_changed.outputs.ve7tzb_ca == 'true' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v4
with:
path: .awspublish-brandonb-web-media
key: ${{ runner.os }}-awspublish-cache-${{ hashFiles('**/.awspublish-brandonb-web-media') }}
restore-keys: |
${{ runner.os }}-awspublish-cache-
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3'
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install ruby dependencies
run: gem install bundler && bundle install
- name: Install js dependencies
run: npm ci
- name: Build and deploy
run: npm run ve7tzb.ca:deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
- uses: sarisia/actions-status-discord@v1
if: success()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "Successfully deployed ve7tzb.ca"
color: 0x28a745
- uses: sarisia/actions-status-discord@v1
if: failure()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "Failed to deploy ve7tzb.ca"
color: 0xdc3545