Add link to Flathub page in README #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| tags: | |
| - "*" | |
| name: Vendored Release | |
| jobs: | |
| vendored-release: | |
| if: startsWith(github.ref, 'refs/tags/') | |
| name: Vendored Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install cargo-vendor-filterer | |
| run: cargo install cargo-vendor-filterer | |
| - name: Create vendored sources | |
| run: build-aux/dist-vendor.sh ../ src | |
| shell: bash | |
| - name: Archive repository | |
| run: git archive --format tar HEAD > packet-${{ github.ref_name }}.tar | |
| - name: Add vendored sources and cargo config to tarball | |
| run: tar -rf packet-${{ github.ref_name }}.tar .cargo vendor | |
| - name: Compress tarball | |
| run: xz -z packet-${{ github.ref_name }}.tar | |
| - name: Generate checksum | |
| run: sha256sum packet-${{ github.ref_name }}.tar.xz > packet-${{ github.ref_name }}.tar.xz.sha256sum | |
| # - name: Install xmllint | |
| # run: sudo apt-get install -y libxml2-utils | |
| # - name: Extract release notes | |
| # run: | | |
| # echo 'RELEASE_NOTES<<EOF' >> $GITHUB_ENV | |
| # xmllint --xpath '//release[1]/description' data/io.github.nozwock.Packet.metainfo.xml.in.in | xmllint --format - >> $GITHUB_ENV | |
| # echo 'EOF' >> $GITHUB_ENV | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| draft: true | |
| # body: ${{ env.RELEASE_NOTES }} | |
| prerelease: ${{ contains(github.ref, 'beta') }} | |
| files: | | |
| packet-${{ github.ref_name }}.tar.xz | |
| packet-${{ github.ref_name }}.tar.xz.sha256sum |