-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.24 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release themes as archives
on:
push:
# Runs on semver-tagged releases
tags:
- "v*.*.*"
jobs:
zip_themes:
runs-on: ubuntu-latest
strategy:
matrix:
# List of theme directories that shall be included
directory: [siteTheme-Bahn-ng]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Zip the theme directory
run: |
cd ${{ matrix.directory }} && zip -r ../${{ matrix.directory }}-${{ github.ref_name }}.zip .
- name: Upload zip as artifact
uses: actions/[email protected]
with:
name: ${{ matrix.directory }}
path: ${{ matrix.directory }}-${{ github.ref_name }}.zip
retention-days: 1
make_release:
runs-on: ubuntu-latest
needs: zip_themes
steps:
- name: Download artifacts
uses: actions/[email protected]
with:
path: artifacts
- name: Create GitHub draft release with the zipped themes as assets
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
with:
# Note: uses default github workflow token which needs write access configured
files: artifacts/*/*
draft: true