-
Notifications
You must be signed in to change notification settings - Fork 24
50 lines (43 loc) · 1.15 KB
/
ci.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
43
44
45
46
47
48
49
50
name: w2c-letsencrypt-esxi
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Create VIB
run: /bin/bash ./build/build.sh
- name: Store VIB
uses: actions/upload-artifact@v2
with:
name: w2c-letsencrypt-esxi
path: |
artifacts/w2c-letsencrypt-esxi.vib
artifacts/w2c-letsencrypt-esxi-offline-bundle.zip
if-no-files-found: error
release:
name: Release
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Retrieve build artifacts
uses: actions/download-artifact@v2
with:
name: w2c-letsencrypt-esxi
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: w2c-letsencrypt-esxi
files: |
w2c-letsencrypt-esxi.vib
w2c-letsencrypt-esxi-offline-bundle.zip