Skip to content

Commit

Permalink
Merge pull request #671 from jburel/update_infra
Browse files Browse the repository at this point in the history
Update infra
  • Loading branch information
jburel authored Jan 4, 2024
2 parents 4ae989b + e1f114f commit 76336a1
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- name: Build static website
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Create website archive
run: tar -zcvf ${{ github.event.repository.name }}.tar.gz -C _site ./
- name: Upload website archive as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}.tar.gz
path: ${{ github.event.repository.name }}.tar.gz
Expand All @@ -36,29 +36,13 @@ jobs:
run: sha256sum --tag ${{ github.event.repository.name }}.tar.gz > SHASUMS
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload website as release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ github.event.repository.name }}.tar.gz
asset_name: ${{ github.event.repository.name }}.tar.gz
asset_content_type: application/gzip
- name: Upload checksum as release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./SHASUMS
asset_name: SHASUMS
asset_content_type: text/plain
files: |
- ${{ github.event.repository.name }}.tar.gz
- SHASUMS

0 comments on commit 76336a1

Please sign in to comment.