Skip to content

Commit

Permalink
feat: add workflow to fetch debs
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
kbdharun committed Jun 20, 2024
1 parent 83d89ec commit 0b07e85
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
38 changes: 38 additions & 0 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
@@ -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'
File renamed without changes.
14 changes: 14 additions & 0 deletions get-debs.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0b07e85

Please sign in to comment.