Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub actions #424

Merged
merged 1 commit into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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