Skip to content

Commit

Permalink
Add release prefix to .artifact files
Browse files Browse the repository at this point in the history
Because it's easy to recognize why we need these files.
  • Loading branch information
otegami committed Dec 19, 2024
1 parent 62ed83b commit 2376c45
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -743,16 +743,16 @@ jobs:
"${Env:FULL_INSTALL_FOLDER}.zip" `
"${Env:INSTALL_FOLDER}.zip"
Add-Content `
-Path "${{ env.INSTALL_FOLDER }}.artifact" `
-Path "release-${{ env.INSTALL_FOLDER }}.artifact" `
-Value "${{ env.INSTALL_FOLDER }}.zip"
- uses: actions/upload-artifact@v4
with:
name: ${{ env.INSTALL_FOLDER }}
path: ${{ env.INSTALL_FOLDER }}.zip
- uses: actions/upload-artifact@v4
with:
name: "${{ env.INSTALL_FOLDER }}.artifact"
path: "${{ env.INSTALL_FOLDER }}.artifact"
name: "release-${{ env.INSTALL_FOLDER }}.artifact"
path: "release-${{ env.INSTALL_FOLDER }}.artifact"
- name: Prepare artifacts with VC++ runtime
run: |
Set-PSDebug -Trace 2
Expand Down Expand Up @@ -820,16 +820,16 @@ jobs:
"${Env:FULL_INSTALL_FOLDER_WITH_VCRUNTIME}.zip" `
"${Env:INSTALL_FOLDER_WITH_VCRUNTIME}.zip"
Add-Content `
-Path "${{ env.INSTALL_FOLDER_WITH_VCRUNTIME }}.artifact" `
-Path "release-${{ env.INSTALL_FOLDER_WITH_VCRUNTIME }}.artifact" `
-Value "${{ env.INSTALL_FOLDER_WITH_VCRUNTIME }}.zip"
- uses: actions/upload-artifact@v4
with:
name: ${{ env.INSTALL_FOLDER_WITH_VCRUNTIME }}
path: ${{ env.INSTALL_FOLDER_WITH_VCRUNTIME }}.zip
- uses: actions/upload-artifact@v4
with:
name: "${{ env.INSTALL_FOLDER_WITH_VCRUNTIME }}.artifact"
path: "${{ env.INSTALL_FOLDER_WITH_VCRUNTIME }}.artifact"
name: "release-${{ env.INSTALL_FOLDER_WITH_VCRUNTIME }}.artifact"
path: "release-${{ env.INSTALL_FOLDER_WITH_VCRUNTIME }}.artifact"

# Test
- uses: ruby/setup-ruby@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ jobs:
version=$(cat base_version)
mv /tmp/groonga.org /tmp/document-${version}
tar -czf document-${version}.tar.gz -C /tmp/ document-${version}
echo "document-${version}.tar.gz" >> "document-${version}.artifact"
echo "document-${version}.tar.gz" >> "release-document-${version}.artifact"
# Artifact
- uses: actions/upload-artifact@v4
with:
name: document
path: document-*.tar.gz
- uses: actions/upload-artifact@v4
with:
name: "document-${version}.artifact"
path: "document-${version}.artifact"
name: "release-document.artifact"
path: "release-document-*.artifact"
release:
if: |
github.ref_type == 'tag'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ jobs:
popd
zip -r groonga-${version}.zip groonga-${version}
rm -rf groonga-${version}
echo "groonga-${version}.tar.gz" >> "groonga-${version}.artifact"
echo "groonga-${version}.zip" >> "groonga-${version}.artifact"
echo "groonga-${version}.tar.gz" >> "release-groonga-${version}.artifact"
echo "groonga-${version}.zip" >> "release-groonga-${version}.artifact"
# Artifact
- uses: actions/upload-artifact@v4
Expand All @@ -129,8 +129,8 @@ jobs:
groonga-*.zip
- uses: actions/upload-artifact@v4
with:
name: "groonga-${version}.artifact"
path: "groonga-${version}.artifact"
name: "release-groonga-${version}.artifact"
path: "release-groonga-${version}.artifact"

build:
name: Build
Expand Down Expand Up @@ -270,15 +270,15 @@ jobs:
- name: Create assets
run: |
tar czf ${{ matrix.id }}.tar.gz packages/${TASK_NAMESPACE}/repositories/
echo "${{ matrix.id }}.tar.gz" >> "${{ matrix.id }}.artifact"
echo "${{ matrix.id }}.tar.gz" >> "release-${{ matrix.id }}.artifact"
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.id }}.tar.gz
path: ${{ matrix.id }}.tar.gz
- uses: actions/upload-artifact@v4
with:
name: "${{ matrix.id }}.artifact"
path: "${{ matrix.id }}.artifact"
name: "release-${{ matrix.id }}.artifact"
path: "release-${{ matrix.id }}.artifact"

# Test
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ jobs:
- name: Upload to release
run: |
cd artifacts
gh release upload "${{ inputs.tag }}" $(cat *.artifact)
gh release upload "${{ inputs.tag }}" $(cat release-*.artifact)
env:
GH_TOKEN: ${{ secrets.token }}

0 comments on commit 2376c45

Please sign in to comment.