generated from phpvms/config_template
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.1 KB
/
distribute.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
name: 'Build'
on:
pull_request:
push:
branches:
- main
jobs:
artifacts:
name : 'Create release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Nerdbank.GitVersioning
uses: dotnet/[email protected]
with:
setAllVars: true
stamp: package.json
# Create a zip from what's in this repo
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'dist/stable.zip'
exclusions: '*.git* /*node_modules/* .editorconfig dist version.json'
command: "mkdir -p dist"
# List all the files that have been created
- name: 'List files'
run: |
find dist/ -maxdepth 2 -type f
- uses: BetaHuhn/do-spaces-action@latest
with:
access_key: ${{ secrets.SPACE_ACCESS_KEY}}
secret_key: ${{ secrets.SPACE_SECRET_KEY }}
space_name: ${{ secrets.SPACE_NAME }}
space_region: ${{ secrets.SPACE_REGION }}
cdn_domain: ${{ secrets.SPACE_CDN_DOMAIN }}
source: dist
out_dir: configs