|
|
|
@@ -9,10 +9,6 @@ permissions:
|
|
|
|
contents: read
|
|
|
|
contents: read
|
|
|
|
id-token: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
|
|
|
|
group: "pages"
|
|
|
|
|
|
|
|
cancel-in-progress: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
@@ -41,7 +37,7 @@ jobs:
|
|
|
|
- name: Read Current Version
|
|
|
|
- name: Read Current Version
|
|
|
|
run: echo "::set-env name=CURRENT_VERSION::$(cat version.txt)"
|
|
|
|
run: echo "::set-env name=CURRENT_VERSION::$(cat version.txt)"
|
|
|
|
working-directory: content
|
|
|
|
working-directory: content
|
|
|
|
- run: git add version.txt && git commit -m "${{ env.VERSION_FRAGMENT }} version increment [skip actions]" && git tag ${{ env.CURRENT_VERSION }}
|
|
|
|
- run: git add version.txt && git commit -m "${{ env.VERSION_FRAGMENT }} version increment [skip actions]"
|
|
|
|
working-directory: content
|
|
|
|
working-directory: content
|
|
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: actions/checkout@v6
|
|
|
|
id: clone quartz repo
|
|
|
|
id: clone quartz repo
|
|
|
|
@@ -65,13 +61,15 @@ jobs:
|
|
|
|
- name: Build Quartz
|
|
|
|
- name: Build Quartz
|
|
|
|
run: npx quartz build
|
|
|
|
run: npx quartz build
|
|
|
|
working-directory: quartz
|
|
|
|
working-directory: quartz
|
|
|
|
|
|
|
|
- run: ls -alR
|
|
|
|
|
|
|
|
working-directory: quartz/public
|
|
|
|
|
|
|
|
- run: tar czf www.tar.gz quartz/public
|
|
|
|
- uses: akkuman/gitea-release-action@v1
|
|
|
|
- uses: akkuman/gitea-release-action@v1
|
|
|
|
working-directory: quartz
|
|
|
|
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
tag_name: ${{env.CURRENT_VERSION}}
|
|
|
|
tag_name: ${{env.CURRENT_VERSION}}
|
|
|
|
name: ${{env.CURRENT_VERSION}}
|
|
|
|
name: ${{env.CURRENT_VERSION}}
|
|
|
|
files: |-
|
|
|
|
files: |-
|
|
|
|
public/**
|
|
|
|
www.tar.gz
|
|
|
|
token: ${{secrets.CI_ACCESS}}
|
|
|
|
token: ${{secrets.CI_ACCESS}}
|
|
|
|
- run: git push && git push --tags
|
|
|
|
- run: git push
|
|
|
|
working-directory: content
|
|
|
|
working-directory: content
|