-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 998 Bytes
/
cloner.yaml
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
name: cloner
on:
push:
branches:
- master
workflow_dispatch:
env:
TERM: linux
jobs:
buildroot:
name: cloner_profile
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Get short SHA
id: slug
run: echo "::set-output name=sha7::$(git rev-parse --short HEAD)"
- name: Zip repo files
run: |
zip -r cloner_profiles.ingenic .
shell: bash
- name: Set ZIP filename environment variable
run: echo "ZIP_NAME=cloner_profiles.ingenic" >> $GITHUB_ENV
- name: Upload cloner as artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.ZIP_NAME }}
path: ${{ env.ZIP_NAME }}
- name: Upload cloner
if: github.event_name != 'pull_request'
uses: softprops/action-gh-release@v1
with:
tag_name: latest
files: ${{ env.ZIP_NAME }}