This repository has been archived by the owner on Jun 30, 2024. It is now read-only.
Prepare release: v0.6.0 #13
Workflow file for this run
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
--- | |
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
bundler-cache: true | |
- name: restore cached downloads | |
id: cache-download-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: downloads | |
key: ${{ runner.os }}-downloads | |
- name: fetch all packages | |
run: bundle exec rake fetch:all | |
- name: generate package | |
run: bundle exec rake package | |
- name: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: pkg/*.tar.xz | |
- name: save downloads in cache | |
id: cache-download-sav | |
uses: actions/cache/save@v3 | |
with: | |
path: downloads | |
key: ${{ steps.cache-download-restore.outputs.cache-primary-key }} |