Skip to content

Commit edc159a

Browse files
authored
Merge pull request #21 from DuneSt/release
Add release workflow
2 parents bf6e1b5 + 50bebe5 commit edc159a

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Used to save an artifact of the releases. Used to deploy a demo on Cyril's server
2+
name: Release
3+
4+
on: [release]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
env:
10+
PROJECT_NAME: ChartJS-${{ matrix.smalltalk }}
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
smalltalk: [ Pharo32-6.1, Pharo32-7.0, Pharo32-8.0, Pharo64-9.0, Pharo64-10, Pharo64-11, Pharo64-12, Pharo64-13, Pharo64-14 ] # Pharo 6, 7, 8 64b currently fails in smalltalkCI :(
16+
name: ${{ matrix.smalltalk }}
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- uses: hpi-swa/setup-smalltalkCI@v1
21+
with:
22+
smalltalk-image: ${{ matrix.smalltalk }}
23+
- run: smalltalkci -s ${{ matrix.smalltalk }}
24+
shell: bash
25+
timeout-minutes: 15
26+
27+
# Here we zip the result of the build to be able to keep the artefacts
28+
- name: package
29+
run: |
30+
mv /home/runner/.smalltalkCI/_builds/* .
31+
mv TravisCI.image $PROJECT_NAME.image
32+
mv TravisCI.changes $PROJECT_NAME.changes
33+
echo ${${{ matrix.smalltalk }}} | sed -e 's/.*\-//g ; s/\..*//g ; s/$/0/' > pharo.version
34+
zip -r $PROJECT_NAME.zip $PROJECT_NAME.image $PROJECT_NAME.changes *.sources pharo.version
35+
ls
36+
37+
- name: Release
38+
uses: softprops/action-gh-release@v3
39+
with:
40+
files: ${{ env.PROJECT_NAME }}.zip

0 commit comments

Comments
 (0)