Skip to content

Commit

Permalink
streamlinging version release
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed May 12, 2024
1 parent 0bcf2be commit 8cb272a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 45 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,35 @@ env:
LABEL_PUBLISHED: 'release::published'

jobs:
build-release-content:
if: ${{ github.event.pull_request.merged && startsWith(github.head_ref, 'release-') }}
runs-on: ubuntu-latest
container:
image: ${{ vars.CONTAINER_SOURCE }}/debian/gcc/release/abn:latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Create build location
run: |
mkdir ${{ env.BUILD_LOC }}
shell: bash
- name: Disable renv
run: |
renv::deactivate()
shell: Rscript {0}
- name: Change permissions of configure
run: |
chmod +x configure
shell: bash
- name: Build the package
run: |
devtools::build(pkg = '.', path = '${{ env.BUILD_LOC }}/abn.tar.gz')
shell: Rscript {0}
# TODO: add abn.tar.gz as artifact

release-version:
needs: build-release-content
if: ${{ github.event.pull_request.merged && startsWith(github.head_ref, 'release-') }}
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -79,6 +107,7 @@ jobs:
run: |
gh pr edit ${{ env.EVENT }} --add-label ${{ env.LABEL_PUBLISHED }} --repo ${{ env.OWNER }}/${{ env.REPO }}
shell: bash
# TODO: get artifact from previous job and add it to the release
# - name: Upload additional artifacts to the release
# run: |
# gh release upload ${{ steps.release_version.outputs.version }} \
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/releasing_version.yml

This file was deleted.

0 comments on commit 8cb272a

Please sign in to comment.