diff --git a/.github/workflows/hydrun.yaml b/.github/workflows/hydrun.yaml
index ae1b535..2a16b34 100644
--- a/.github/workflows/hydrun.yaml
+++ b/.github/workflows/hydrun.yaml
@@ -8,24 +8,29 @@ on:
jobs:
build-linux:
- runs-on: ubuntu-latest
+ runs-on: ${{ matrix.target.runner }}
permissions:
contents: read
- packages: write
- id-token: write
strategy:
matrix:
target:
- id: pwa
src: .
os: golang:alpine
- flags: ""
+ flags: -e '-v /tmp/ccache:/root/.cache/go-build'
cmd: ./Hydrunfile pwa
dst: out/*
+ runner: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
+ - name: Restore ccache
+ uses: actions/cache/restore@v4
+ with:
+ path: |
+ /tmp/ccache
+ key: cache-ccache-${{ matrix.target.id }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
@@ -39,6 +44,12 @@ jobs:
run: hydrun -o ${{ matrix.target.os }} ${{ matrix.target.flags }} "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} ${{ matrix.target.cmd }}"
- name: Fix permissions for output
run: sudo chown -R $USER .
+ - name: Save ccache
+ uses: actions/cache/save@v4
+ with:
+ path: |
+ /tmp/ccache
+ key: cache-ccache-${{ matrix.target.id }}
- name: Upload output
uses: actions/upload-artifact@v4
with:
@@ -63,7 +74,7 @@ jobs:
uses: actions/download-artifact@v4
with:
path: /tmp/out
- - name: Isolate the PWA from the other artifacts
+ - name: Isolate the repositories
run: |
mkdir -p /tmp/github-pages
tar xvzf /tmp/out/pwa/*.tar.gz -C /tmp/github-pages
@@ -73,30 +84,26 @@ jobs:
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Publish pre-release to GitHub releases
if: ${{ github.ref == 'refs/heads/main' }}
- uses: marvinpinto/action-automatic-releases@latest
+ uses: softprops/action-gh-release@v2
with:
- repo_token: "${{ secrets.GITHUB_TOKEN }}"
- automatic_release_tag: release-${{ steps.extract_branch.outputs.branch }}
+ tag_name: release-${{ steps.extract_branch.outputs.branch }}
prerelease: true
files: |
/tmp/out/*/*
- name: Publish release to GitHub releases
if: startsWith(github.ref, 'refs/tags/v')
- uses: marvinpinto/action-automatic-releases@latest
+ uses: softprops/action-gh-release@v2
with:
- repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
/tmp/out/*/*
- name: Setup GitHub Pages
- if: startsWith(github.ref, 'refs/tags/v')
uses: actions/configure-pages@v5
- name: Upload GitHub Pages artifact
- if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-pages-artifact@v3
with:
path: /tmp/github-pages/
- name: Publish to GitHub pages
- if: startsWith(github.ref, 'refs/tags/v')
id: publish
uses: actions/deploy-pages@v4
+
diff --git a/README.md b/README.md
index b8f8adf..fbb67e5 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,7 @@
-
+
# Morniteaque Site