Release #16
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: Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: ['release/*'] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
RESOURCE_PUBLISHER_TOKEN: ${{ secrets.RESOURCE_PUBLISHER_TOKEN }} | |
WOLFRAMSCRIPT_ENTITLEMENTID: ${{ secrets.WOLFRAMSCRIPT_ENTITLEMENTID }} | |
WLPR_PACLET_SITE: https://resources.wolframcloud.com/PacletRepository/pacletsite | |
jobs: | |
Check: | |
name: Check | |
runs-on: ubuntu-latest | |
container: | |
image: wolframresearch/wolframengine:13.0.1 | |
options: --user root | |
env: | |
WOLFRAM_SYSTEM_ID: Linux-x86-64 | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
id: checkout-code-step | |
uses: actions/checkout@v3 | |
- name: BuildMX | |
run: | | |
if [ "${{ env.WLPR_PACLET_SITE }}" != "" ] | |
then | |
echo 'Updating paclet sites...' | |
wolframscript -code 'PacletInstall["PacletManager"];PacletSiteRegister["${{ env.WLPR_PACLET_SITE }}"];PacletSiteUpdate[PacletSites[]];Quit[]' > /dev/null | |
fi | |
wolframscript Scripts/BuildMX.wls | |
- name: Check | |
id: check-paclet-step | |
uses: WolframResearch/[email protected] | |
with: | |
target: Submit | |
paclet_cicd_version: 0.33.3 | |
definition_notebook: ./ResourceDefinition.nb | |
resource_system_base: https://www.wolframcloud.com/obj/resourcesystem/api/1.0 | |
Test: | |
name: Test | |
runs-on: ubuntu-latest | |
container: | |
image: wolframresearch/wolframengine:13.0.1 | |
options: --user root | |
env: | |
WOLFRAM_SYSTEM_ID: Linux-x86-64 | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
id: checkout-code-step | |
uses: actions/checkout@v3 | |
- name: BuildMX | |
run: | | |
if [ "${{ env.WLPR_PACLET_SITE }}" != "" ] | |
then | |
echo 'Updating paclet sites...' | |
wolframscript -code 'PacletInstall["PacletManager"];PacletSiteRegister["${{ env.WLPR_PACLET_SITE }}"];PacletSiteUpdate[PacletSites[]];Quit[]' > /dev/null | |
fi | |
wolframscript Scripts/BuildMX.wls | |
- name: Test | |
id: test-paclet-step | |
uses: WolframResearch/[email protected] | |
with: | |
target: Submit | |
paclet_cicd_version: 0.33.3 | |
definition_notebook: ./ResourceDefinition.nb | |
resource_system_base: https://www.wolframcloud.com/obj/resourcesystem/api/1.0 | |
Release: | |
name: Release | |
needs: [Check, Test] | |
runs-on: ubuntu-latest | |
container: | |
image: wolframresearch/wolframengine:13.0.1 | |
options: --user root | |
env: | |
WOLFRAM_SYSTEM_ID: Linux-x86-64 | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
id: checkout-code-step | |
uses: actions/checkout@v3 | |
- name: BuildMX | |
run: | | |
if [ "${{ env.WLPR_PACLET_SITE }}" != "" ] | |
then | |
echo 'Updating paclet sites...' | |
wolframscript -code 'PacletInstall["PacletManager"];PacletSiteRegister["${{ env.WLPR_PACLET_SITE }}"];PacletSiteUpdate[PacletSites[]];Quit[]' > /dev/null | |
fi | |
wolframscript Scripts/BuildMX.wls | |
- name: Build | |
id: build-paclet-step | |
uses: WolframResearch/[email protected] | |
with: | |
target: Submit | |
paclet_cicd_version: 0.33.3 | |
definition_notebook: ./ResourceDefinition.nb | |
resource_system_base: https://www.wolframcloud.com/obj/resourcesystem/api/1.0 | |
- name: UploadArtifact | |
id: upload-build-artifacts-step | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{ env.PACLET_BUILD_DIR }} | |
if-no-files-found: ignore | |
- name: CreateRelease | |
id: create-release-step | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.PACLET_RELEASE_TAG }} | |
release_name: Release ${{ env.PACLET_RELEASE_TAG }} | |
draft: false | |
prerelease: false | |
- name: UploadRelease | |
id: upload-release-asset-step | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create-release-step.outputs.upload_url }} | |
asset_path: ${{ env.PACLET_PATH }} | |
asset_name: ${{ env.PACLET_FILE }} | |
asset_content_type: application/zip | |
Submit: | |
name: Submit | |
needs: [Check, Test] | |
runs-on: ubuntu-latest | |
container: | |
image: wolframresearch/wolframengine:13.0.1 | |
options: --user root | |
env: | |
WOLFRAM_SYSTEM_ID: Linux-x86-64 | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
id: checkout-code-step | |
uses: actions/checkout@v3 | |
- name: BuildMX | |
run: | | |
if [ "${{ env.WLPR_PACLET_SITE }}" != "" ] | |
then | |
echo 'Updating paclet sites...' | |
wolframscript -code 'PacletInstall["PacletManager"];PacletSiteRegister["${{ env.WLPR_PACLET_SITE }}"];PacletSiteUpdate[PacletSites[]];Quit[]' > /dev/null | |
fi | |
wolframscript Scripts/BuildMX.wls | |
- name: Submit | |
id: submit-paclet-step | |
uses: WolframResearch/[email protected] | |
with: | |
paclet_cicd_version: 0.33.3 | |
definition_notebook: ./ResourceDefinition.nb | |
resource_system_base: https://www.wolframcloud.com/obj/resourcesystem/api/1.0 | |
- name: UploadArtifact | |
id: upload-build-artifacts-step | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{ env.PACLET_BUILD_DIR }} | |
if-no-files-found: ignore |