Skip to content

Commit

Permalink
ci: add release
Browse files Browse the repository at this point in the history
  • Loading branch information
rennsax committed May 21, 2024
1 parent 9e4cadb commit a3f86fb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Pack Emacs configurations with submodule downloaded
on:
push:

permissions:
contents: write

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: '.emacs.d'

- name: Update submodules
run: |
cd .emacs.d
sed -i '/shallow = true/d' .gitmodules
git submodule update --init --recursive
- name: Create tarball
run: |
tar zcvf celeste-emacs-latest.tar.gz --exclude=.git .emacs.d
- name: Generate SHA256 checksum
run: |
sha256sum celeste-emacs-* > SHA256SUMS.txt
cat SHA256SUMS.txt
- name: List files
run: |
ls -lh
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
celeste-emacs-latest.tar.gz
SHA256SUMS.txt
tag_name: latest

0 comments on commit a3f86fb

Please sign in to comment.