Skip to content

Artifacts

Artifacts #6

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Artifacts
# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab, do not run automatically
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "gen-artifacts"
gen-artifacts:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
with:
version: 1.6.0
- name: "Get artifact"
run: |
cd $GITHUB_WORKSPACE
julia -e 'include(joinpath(pwd(),"deps","generate_artifacts.jl")); generate_artifacts("'"$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"'")'
- name: "Commit updated Artifacts.toml"
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Update Artifacts.toml for artifact version $PLOTLY_VER" "Artifacts.toml"
- name: "Push changes"
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: "Release"
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "plotly-artifacts-${{ env.PLOTLY_VER }}.tar.gz"
replacesArtifacts: true
token: ${{ secrets.GITHUB_TOKEN }}
tag: "plotly-artifacts-${{ env.PLOTLY_VER }}"