Skip to content

Commit

Permalink
release tag auto
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Jan 9, 2024
1 parent 312a537 commit 1188533
Showing 1 changed file with 5 additions and 35 deletions.
40 changes: 5 additions & 35 deletions .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,12 @@ on:
push:
tags:
- 'v*'

jobs:
tagged-release:
name: 'tagged-release'
runs-on: ${{ matrix.config.os }}

strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
env:
JEST_VERBOSE: ${{ secrets.JEST_VERBOSE }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: Install dependencies
run: |
Rscript -e 'install.packages("remotes")'
Rscript -e 'remotes::install_deps(dependencies = TRUE)'
- name: Build
run: R CMD build .

- name: Publish release
- name: Checkout
uses: actions/checkout@v3
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "*.tar.gz"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1188533

Please sign in to comment.