Skip to content

Commit

Permalink
Fixed the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rchaput committed Jan 30, 2022
1 parent 00038e1 commit 0b5b2a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 28 deletions.
43 changes: 16 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ jobs:
- name: Checkout the source code
uses: actions/checkout@v2

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: 4.1.2
use-public-rspm: true

- name: Download dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: devtools

- name: Zip the Lua files
# We want the top-level directory to be "acronymsdown",
# instead of "inst". So we first copy the files to a new directory.
Expand All @@ -26,31 +37,9 @@ jobs:
run: make doc build

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: ""

- name: Upload Pandoc artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /tmp/acronymsdown.zip
asset_name: acronymsdown-pandoc.zip
asset_content_type: application/zip

- name: Upload R artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
upload_url: ${{ steps.create_release.oututs.upload_url }}
asset_path: acronymsdown_*.tar.gz
asset_name: acronymsdown-R.tar.gz
asset_content_type: application/gzip
name: Release ${{ github.ref_name }}
files: |
./acronysmdown_*.tar.gz
/tmp/acronymsdown.zip
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: acronymsdown
Type: Package
Title: Acronyms and Glossaries Support for RMarkdown
Version: 0.10.3
Version: 0.10.4
Author: Remy Chaput
Maintainer: remy chaput <rchaput.pro@gmail.com>
Description: Adds support for list of acronyms (or glossaries) for RMarkdown
Expand Down

0 comments on commit 0b5b2a2

Please sign in to comment.