rename.
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -24,14 +24,14 @@ jobs:
|
||||
run: ./script/verify-no-unstaged-changes.sh
|
||||
|
||||
- name: Test tarball
|
||||
run: ./script/test.sh ./_layout/action_versions.tar.gz
|
||||
run: ./script/test.sh ./_layout/action-versions.tar.gz
|
||||
|
||||
- name: Test zipball
|
||||
run: ./script/test.sh ./_layout/action_versions.zip
|
||||
run: ./script/test.sh ./_layout/action-versions.zip
|
||||
|
||||
- name: Release
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
run: |
|
||||
gh release create v${{github.sha}} --generate-notes ./_layout/action_versions.zip ./_layout/action_versions.tar.gz
|
||||
gh release create v${{github.sha}} --generate-notes ./_layout/action-versions.zip ./_layout/action-versions.tar.gz
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
@@ -54,17 +54,17 @@ cp -r "$layout_dir" "$zipball_layout_dir"
|
||||
pushd "$zipball_layout_dir"
|
||||
find . -type f -name "*.tar.gz" -delete
|
||||
ls -l -R ./
|
||||
echo "Creating action_versions_zipball in ${zipball_layout_dir}"
|
||||
pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "Compress-Archive -Path \"${zipball_layout_dir}\\*\" -DestinationPath \"${layout_dir}\action_versions.zip\""
|
||||
echo "Creating action-versions zipball in ${zipball_layout_dir}"
|
||||
pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "Compress-Archive -Path \"${zipball_layout_dir}\\*\" -DestinationPath \"${layout_dir}\action-versions.zip\""
|
||||
popd
|
||||
|
||||
cp -r "$layout_dir" "$tarball_layout_dir"
|
||||
pushd "$tarball_layout_dir"
|
||||
find . -type f -name "*.zip" -delete
|
||||
ls -l -R ./
|
||||
echo "Creating action_versions.tar.gz in ${tarball_layout_dir}"
|
||||
echo "Creating action-versions tarball in ${tarball_layout_dir}"
|
||||
pushd "$layout_dir"
|
||||
tar -czf "action_versions.tar.gz" -C "${tarball_layout_dir}" .
|
||||
tar -czf "action-versions.tar.gz" -C "${tarball_layout_dir}" .
|
||||
popd
|
||||
popd
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Usage: script/test.sh ./_layout/action_versions.[tar.gz|zip]
|
||||
# Usage: script/test.sh ./_layout/action-versions.[tar.gz|zip]
|
||||
# Verify the archive is well-formed with an action.[yaml|yml]
|
||||
|
||||
set -e
|
||||
|
||||
Reference in New Issue
Block a user