Skip to content

Build Privacy Policies #1

Build Privacy Policies

Build Privacy Policies #1

name: Build Privacy Policies
on:
push:
branches:
- main
paths:
- 'assets/privacy_policy/**'
workflow_dispatch:
jobs:
combine-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build privacy policies
run: |
for file in assets/privacy_policy/policy_zhHans.md assets/privacy_policy/policy_zhHant.md assets/privacy_policy/policy_yue.md assets/privacy_policy/policy_en.md; do
cat "$file" >> privacy_policy.md
echo "" >> privacy_policy.md
done
- name: Setup GitHub Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'privacy_policy.md'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1