forked from Philipinho/Simple-PHP-Blog
-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.36 KB
/
build.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
51
52
53
name: Build squence
on:
push:
paths-ignore: ".*"
tags:
- buildit
jobs:
build:
name: Build Project
permissions:
actions: read
checks: read
contents: write
packages: write
deployments: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Compress files for deployment
run: find . ! -ipath '.' ! -ipath './.git*' ! -ipath './.vs*' ! -ipath '*.md' -exec tar -zcvf build.md/simple-php-blog.tar.gz {} +
- name: Upload tar file
uses: actions/upload-artifact@v3
with:
name: release
path: build.md/simple-php-blog.tar.gz
release:
name: Create release
needs: build
permissions:
actions: read
checks: read
contents: read
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: my-artifact
- name: Display structure of downloaded files
run: ls -R
- name: Create Release
uses: marvinpinto/action-automatic-releases@latest
with:
prerelease: false
automatic_release_tag: latest
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: simple-php-blog.tar.gz
title: Simple PHP Blog version