Skip to content

Commit ba868b9

Browse files
author
Niklas Schilli
authored
Create release-trunk.yml (#280)
* Create release-trunk.yml * Update release-trunk.yml * Update release-trunk.yml
1 parent 3f445e4 commit ba868b9

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/release-trunk.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI-Release-Trunk
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ ubuntu-latest ]
13+
smalltalk: [ Squeak64-5.3 ]
14+
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: hpi-swa/setup-smalltalkCI@v1
18+
with:
19+
smalltalk-version: ${{ matrix.smalltalk }}
20+
- run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalk.release.ston
21+
timeout-minutes: 15
22+
- name: Get current time
23+
uses: 1466587594/get-current-time@v1
24+
id: current-time
25+
with:
26+
format: YYYYMMDD-HH
27+
utcOffset: "+01:00"
28+
- name: Create Release
29+
id: create_release
30+
uses: actions/create-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
tag_name: Trunk ${{ steps.current-time.outputs.formattedTime }}
35+
release_name: Trunk Release ${{ steps.current-time.outputs.formattedTime }}
36+
draft: false
37+
prerelease: true
38+
- name: Upload Release Asset
39+
id: upload-release-asset
40+
uses: actions/upload-release-asset@v1
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
with:
44+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
45+
asset_path: /home/runner/.smalltalkCI/_builds/TelegramClient.sar
46+
asset_name: TelegramClient.sar
47+
asset_content_type: application/zip

0 commit comments

Comments
 (0)