🎨 Improve rendering for better visuals #19
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: Build and Release | |
on: | |
# push: | |
# branches: | |
# - main | |
# tags: | |
# - 'v*' | |
# pull_request: | |
# branches: | |
# - main | |
# schedule: | |
# - cron: '0 0 * * *' # This runs daily at midnight UTC | |
# workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
- name: Install dependencies | |
run: | | |
install.packages('devtools') | |
install.packages('remotes') | |
- name: Build tarball | |
run: | | |
R CMD build R/edudat | |
shell: Rscript {0} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./edudat_0.1.tar.gz | |
asset_name: edudat_0.1.tar.gz | |
asset_content_type: application/gzip |