diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml new file mode 100644 index 0000000..ca09ba7 --- /dev/null +++ b/.github/workflows/fetch.yml @@ -0,0 +1,38 @@ +name: Fetch and release + +on: + push: + tags: + - '*' + +jobs: + release: + name: Create the release + runs-on: ubuntu-latest + permissions: + contents: write # to upload assets to releases + attestations: write # to upload assets attestation for build provenance + id-token: write # grant additional permission to attestation action to mint the OIDC token permission + + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Fetch Deb packages + run: bash get-debs.sh + + - name: Create the release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release create --title "$GITHUB_REF_NAME" "$GITHUB_REF_NAME" + + - name: Upload packages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release upload "$GITHUB_REF_NAME" *.deb + + - name: Attest release files + id: attest + uses: actions/attest-build-provenance@v1 + with: + subject-path: '*.deb' diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/get-debs.sh b/get-debs.sh new file mode 100644 index 0000000..126f12d --- /dev/null +++ b/get-debs.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +wget http://ftp.debian.org/debian/pool/main/g/gnome-shell/gnome-shell_46.2-1_amd64.deb +wget http://ftp.debian.org/debian/pool/main/m/mutter/mutter_46.2-1_amd64.deb +wget http://ftp.debian.org/debian/pool/main/m/mutter/mutter-common_46.2-1_all.deb +wget http://ftp.debian.org/debian/pool/main/m/mutter/mutter-14-tests_46.2-1_amd64.deb +wget http://ftp.debian.org/debian/pool/main/m/mutter/libmutter-test-14_46.2-1_amd64.deb +wget http://ftp.debian.org/debian/pool/main/m/mutter/libmutter-14-dev_46.2-1_amd64.deb +wget http://ftp.debian.org/debian/pool/main/m/mutter/gir1.2-mutter-14_46.2-1_amd64.deb +wget http://ftp.debian.org/debian/pool/main/m/mutter/mutter-common-bin_46.2-1_amd64.deb +wget http://ftp.debian.org/debian/pool/main/m/mutter/libmutter-14-0_46.2-1_amd64.deb +wget http://ftp.debian.org/debian/pool/main/g/gnome-shell/gnome-shell-common_46.2-1_all.deb +wget http://ftp.debian.org/debian/pool/main/g/gnome-shell/gnome-shell-extension-prefs_46.2-1_amd64.deb +wget http://ftp.debian.org/debian/pool/main/g/gnome-remote-desktop/gnome-remote-desktop_46.2-1_amd64.deb