Skip to content

Bump version: 0.99.620 → 0.99.621 #18

Bump version: 0.99.620 → 0.99.621

Bump version: 0.99.620 → 0.99.621 #18

on:
push:
branches:
- devel
- RELEASE*
- ci/*
name: Create Github Release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
tag_version: ${{ steps.get_tag.outputs.tag_version }}
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
fetch-depth: 0
- name: Get most recent tag
id: get_tag
run: echo "TAG_VERSION=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
- name: Create Release
id: create_release
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
echo "Creating release for tag $TAG_VERSION"
gh release create $TAG_VERSION --title "Release $TAG_VERSION" --notes "Release $TAG_VERSION" --target ${{ github.ref }}
create_release_artifacts:
needs: [create-release]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
r_version: ['release', 'devel', 'next']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Install system dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y libxml2-dev \
libssl-dev libcurl4-openssl-dev \
libharfbuzz-dev libfribidi-dev \
pandoc
- name: Install system dependencies
if: matrix.os == 'macos-latest'
run: |
brew install libxml2 openssl curl \
harfbuzz fribidi pandoc glib-openssl
- name: Setup R
uses: r-lib/actions/setup-r@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2.9.0
with:
r-version: ${{ matrix.r_version }}
use-public-rspm: true
id: r
- name: Install dependencies
uses: r-lib/actions/setup-renv@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2.9.0
- name: Build Package
run: R CMD build .
- name: Rename Package
run: ./utilities/rename-package.R *.tar.gz
- name: debug
run: |
echo "R version: ${{ steps.r.outputs.installed-r-version }}"
echo "Platform: ${{ runner.os }}"
- name: Upload Release Artifact
run: gh release upload ${{ needs.create-release.outputs.tag_version }} *.tar.gz