-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (42 loc) · 1.27 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
43
44
45
46
47
48
49
50
name: Jekyll site CI
on:
workflow_dispatch:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.3
- run: bundle install
- run: bundle exec jekyll build -d _site/
# Runs a single command using the runners shell
- name: Zip the Website
run: zip -r ${{ github.workspace }}/Website.zip _site
- name: Get Time
id: time
uses: nanzm/get-time-action@v1.0
with:
format: 'YYYY-MM-DD-HH-mm'
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: Update_${{ steps.time.outputs.time }}
release_name: Update_${{ steps.time.outputs.time }}
body: Update_${{ steps.time.outputs.time }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/Website.zip
asset_name: Website.zip
asset_content_type: application/zip