From 0f64aca06fc28fa578d88334ee8277c74608241e Mon Sep 17 00:00:00 2001 From: Haruaki Tamada Date: Thu, 5 Dec 2024 11:09:10 +0900 Subject: [PATCH 1/2] fix errors in GitHub Action workflow --- .github/workflows/publish.yaml | 32 ++++++++++++++++---------------- .github/workflows/versionup.yaml | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e8c0033..56c8081 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -18,7 +18,6 @@ jobs: - name: Git Tag Name id: vars run: | - echo "GITHUB_HEAD_REF: $GITHUB_HEAD_REF (${GITHUB_HEAD_REF##*/v})" echo "tag=${GITHUB_HEAD_REF##*/v}" >> $GITHUB_OUTPUT - name: Create release @@ -37,6 +36,7 @@ jobs: outputs: appname: ${{ needs.setup.outputs.appname }} tag: ${{ needs.setup.outputs.tag }} + upload_url: ${{ needs.setup.outputs.upload_url }} steps: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 @@ -52,7 +52,7 @@ jobs: - name: Build Site run: | - git worktree add gh-pages docs/public + git worktree add docs/public gh-pages (cd docs ; hugo) - name: Deploy @@ -72,28 +72,28 @@ jobs: include: - os: ubuntu-latest target: aarch64-unknown-linux-musl - artifact_name: ${{ needs.setup.outputs.appname }} - asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_linux_amd64 + artifact_name: ${{ needs.documents.outputs.appname }} + asset_name: ${{ needs.documents.outputs.appname }}-${{ needs.documents.outputs.tag }}_linux_amd64 - os: ubuntu-latest target: x86_64-unknown-linux-musl - artifact_name: ${{ needs.setup.outputs.appname }} - asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_linux_arm64 + artifact_name: ${{ needs.documents.outputs.appname }} + asset_name: ${{ needs.documents.outputs.appname }}-${{ needs.documents.outputs.tag }}_linux_arm64 # - os: ubuntu-latest # target: aarch64-pc-windows-gnullvm - # artifact_name: ${{ needs.setup.outputs.appname }}.exe - # asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_windows_amd64 + # artifact_name: ${{ needs.documents.outputs.appname }}.exe + # asset_name: ${{ needs.documents.outputs.appname }}-${{ needs.documents.outputs.tag }}_windows_amd64 # - os: ubuntu-latest # target: x86_64-pc-windows-gnu - # artifact_name: ${{ needs.setup.outputs.appname }}.exe - # asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_windows_arm64 + # artifact_name: ${{ needs.documents.outputs.appname }}.exe + # asset_name: ${{ needs.documents.outputs.appname }}-${{ needs.documents.outputs.tag }}_windows_arm64 - os: macos-latest target: aarch64-apple-darwin - artifact_name: ${{ needs.setup.outputs.appname }} - asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_darwin_amd64 + artifact_name: ${{ needs.documents.outputs.appname }} + asset_name: ${{ needs.documents.outputs.appname }}-${{ needs.documents.outputs.tag }}_darwin_amd64 - os: macos-latest target: x86_64-apple-darwin - artifact_name: ${{ needs.setup.outputs.appname }} - asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_darwin_arm64 + artifact_name: ${{ needs.documents.outputs.appname }} + asset_name: ${{ needs.documents.outputs.appname }}-${{ needs.documents.outputs.tag }}_darwin_arm64 steps: - name: Checkout uses: actions/checkout@v4 @@ -105,7 +105,7 @@ jobs: id: vars shell: bash run: | - DIR=$(echo "${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}") + DIR=$(echo "${{ needs.documents.outputs.appname }}-${{ needs.documents.outputs.tag }}") echo "dir=$DIR" >> $GITHUB_OUTPUT - name: Setup Rust run: rustup update stable @@ -146,4 +146,4 @@ jobs: asset_path: dist/${{ matrix.asset_name }}.tar.gz asset_name: ${{ matrix.asset_name }}.tar.gz asset_content_type: application/x-gzip - upload_url: ${{ needs.setup.outputs.upload_url }} + upload_url: ${{ needs.documents.outputs.upload_url }} diff --git a/.github/workflows/versionup.yaml b/.github/workflows/versionup.yaml index d6ba94e..f578323 100644 --- a/.github/workflows/versionup.yaml +++ b/.github/workflows/versionup.yaml @@ -23,7 +23,7 @@ jobs: git config --global user.name "GitHub Actions" git config --global user.email "action@github.com" auth_header="$(git config --local --get http.https://github.com/.extraheader)" - + - name: Version up id: updating_version run: From d766d3dc6f4b8c3439b49ddd0e556f81f051319d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 5 Dec 2024 02:09:31 +0000 Subject: [PATCH 2/2] update version to 2.0.0-beta-3, ready to publish v2.0.0-beta-3 --- docs/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config.toml b/docs/config.toml index 7827fad..66eaaec 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -15,7 +15,7 @@ pygmentsStyle = "pygments" project_tagline = "get next/previous sibling directory name" dateFormat = "2006-01-02" katex = true - version = "2.0.0-beta-2" + version = "2.0.0-beta-3" footer = "[![GitHub](https://img.shields.io/badge/GitHub-tamada/sibling-blueviolet.svg?logo=github)](https://github.com/tamada/sibling) Made with [Hugo](https://gohugo.io/). Theme by [Cayman](https://github.com/zwbetz-gh/cayman-hugo-theme). Deployed to [GitHub Pages](https://pages.github.com/)." [menu]