Skip to content

Commit

Permalink
chore: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rennsax committed May 21, 2024
1 parent bec4b98 commit 0087b05
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pack dotfiles with submodules downloaded
on:
push:
tags:
- 'v*.*.*'

permissions:
contents: write

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
path: '.dotfiles'

- name: Create tarball
run: |
tar zcvf dotfiles-${{ github.ref_name }}.tar.gz .dotfiles
- name: Generate SHA256 checksums
run: |
sha256sum dotfiles-* > SHA256SUMS.txt
cat SHA256SUMS.txt
- name: List files
run: |
ls -lh
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
dotfiles-${{ github.ref_name }}.tar.gz
SHA256SUMS.txt
2 changes: 2 additions & 0 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- dev

jobs:
test:
Expand All @@ -24,6 +25,7 @@ jobs:
run: |
./scripts/init-dotfiles.sh
# "link dotfiles" should be idempotent
- name: Link dotfiles twice
run: |
./scripts/init-dotfiles.sh

0 comments on commit 0087b05

Please sign in to comment.