Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
* set-output is now deprecated
* actions/setup-python@v2 is using a deprecated version of node, and is now v4
* actions/upload-artifact@v1 uses the deprecated set-output stanza
* actions/checkout is now v3
  • Loading branch information
i80and committed Oct 20, 2022
1 parent 5931acd commit 60d9a11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
platform: [ubuntu-20.04, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
Expand All @@ -29,7 +31,7 @@ jobs:
id: build_package
run: make package
- name: Upload package
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: packages
path: dist/${{ steps.build_package.outputs.package_filename }}
Expand All @@ -46,8 +48,8 @@ jobs:
- name: Get environment
id: environment
run: |
echo "::set-output name=date::$(date +%Y-%m-%d)"
echo "::set-output name=tag_name::$(echo ${{ github.ref }} | cut -d / -f 3)"
echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
echo "tag_name=$(echo ${{ github.ref }} | cut -d / -f 3)" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: ncipollo/release-action@4874428bc07f8473128b16dfb628a0bcfb6ca10d
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dist/${PACKAGE_NAME}: snooty/rstspec.toml snooty/config.toml dist/snooty/.EXISTS
cd dist && find snooty -print | sort | zip -X ../$@ -@
# Ensure that the generated binary runs
./dist/snooty/snooty --help >/dev/null
echo "::set-output name=package_filename::${PACKAGE_NAME}"
if [ -n "${GITHUB_OUTPUT}" ]; then echo "package_filename=${PACKAGE_NAME}" >> "${GITHUB_OUTPUT}"; fi

dist/${PACKAGE_NAME}.asc: dist/snooty-${VERSION}-${PLATFORM}.zip ## Build and sign a binary tarball
gpg --armor --detach-sig $^
Expand Down

0 comments on commit 60d9a11

Please sign in to comment.