Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed Aug 22, 2024
0 parents commit 7d6a235
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/One.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: One

on:
- push

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Build
run: |
mkdir -p pages/one
echo "Hello world one!" > pages/one/index.html
- name: Upload
uses: actions/upload-artifact@v4
with:
name: pages-one
path: pages

Pages:
if: github.ref == 'refs/heads/main'
needs: Build
uses: ./.github/workflows/Pages.yaml
24 changes: 24 additions & 0 deletions .github/workflows/Pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pages

on: workflow_call

jobs:
Deploy:
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Download
uses: actions/download-artifact@v4
with:
path: pages
pattern: pages-*
merge-multiple: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
path: pages
- name: Deploy
uses: actions/deploy-pages@v4
23 changes: 23 additions & 0 deletions .github/workflows/Two.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Two

on:
- push

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Build
run: |
mkdir -p pages/two
echo "Hello world two!" > pages/two/index.html
- name: Upload
uses: actions/upload-artifact@v4
with:
name: pages-two
path: pages

Pages:
if: github.ref == 'refs/heads/main'
needs: Build
uses: ./.github/workflows/Pages.yaml

0 comments on commit 7d6a235

Please sign in to comment.