Skip to content

Commit

Permalink
{ci} Attempt to create and add slim versions on release
Browse files Browse the repository at this point in the history
  • Loading branch information
asmaloney committed Sep 14, 2021
1 parent a23e25a commit 3943297
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release ACT-R Slim
on:
release:
types: [created]

jobs:
slim:
name: Release ACT-R Slim
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Slim Archive
# "slim" removes examples, tutorials, and extras
run: zip -r actr-slim-${{ github.event.release.tag_name }}.zip . -x \*.git\* \*.DS_Store \*.zip examples/\* extras/\* other-files/\* tutorial/\*
- name: Slim (no env) Archive
# "super slim" also removes the docs and (most of) the environment
run: zip -r actr-super-slim-${{ github.event.release.tag_name }}.zip . -x \*.git\* \*.DS_Store \*.zip docs/\* environment/\*.exe environment/GUI/\* environment/run-\* environment/start\* examples/\* extras/\* other-files/\* tutorial/\*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
actr-slim-${{ github.event.release.tag_name }}.zip
actr-super-slim-${{ github.event.release.tag_name }}.zip

0 comments on commit 3943297

Please sign in to comment.