-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.68 KB
/
main.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
name: Build dotfile build packages
on:
push:
branches:
- source
schedule:
# Runs on the 1st of every month at 4PM
- cron: "0 16 1 * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
GIT_AUTHOR_NAME: "Jason Yao"
GIT_AUTHOR_EMAIL: "[email protected]"
BRANCH_REF_NAME: ${{ github.head_ref }}
SHA_COMMIT_HASH: ${{ github.sha }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
# Deploy pipeline metadata
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- name: Extracts the current branch name
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- run: echo "🔎 The name of your branch is ${{ steps.extract_branch.outputs.branch }} and your repository is ${{ github.repository }}."
# Sets up environment
- name: Checkout repo code
uses: actions/checkout@v2
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Python 3 setup
uses: actions/setup-python@v2
with:
python-version: '3.10.6' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install dependencies
run: bin/install-dependencies
- name: Generate release packages
run: bin/generate-release ${{ steps.extract_branch.outputs.branch }}