-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa09125
commit 547e53a
Showing
16 changed files
with
1,309 additions
and
1,242 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Create beta deb package | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
jobs: | ||
deb: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
- name: Find package version | ||
id: ver | ||
run: | | ||
echo "full=$(echo $GITHUB_REF | cut -d / -f 3- | sed 's,/,-,g')" >> "$GITHUB_OUTPUT" | ||
echo "num=$(echo $GITHUB_REF | cut -d / -f 3 | cut -c2-)" >> "$GITHUB_OUTPUT" | ||
- name: Build and test with Rake | ||
run: | | ||
gem install bundler | ||
bundle install --jobs 4 --retry 3 | ||
bundle exec rake | ||
- name: Install gem2deb | ||
run: | | ||
sudo apt update -yqq && sudo apt install -yqq --no-install-recommends gem2deb | ||
- name: Show version ids | ||
run: | | ||
echo ${{ steps.ver.outputs.num }} | ||
echo ${{ steps.ver.outputs.full }} | ||
- name: Create deb | ||
run: | | ||
export EMAIL=$(git log -n 1 --pretty=format:%ae) | ||
gem2deb -p sensething sensething-${{ steps.ver.outputs.num }}.gem | ||
- name: Upload source artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sensething-${{ steps.ver.outputs.full }}-source | ||
path: | | ||
lib/**/*.rb | ||
bin/sensething | ||
Gemfile | ||
Gemfile.lock | ||
Rakefile | ||
LICENSE | ||
sensething.gemspec | ||
- name: Upload source artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sensething_${{ steps.ver.outputs.full }}_deb | ||
path: sensething_${{ steps.ver.outputs.num }}_all.deb |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.