@@ -3,50 +3,50 @@ name: Build
33on : push
44
55jobs :
6- build :
7- name : build
8- runs-on : ubuntu-latest
9- steps :
10- - name : Checkout
11- uses : actions/checkout@v2
12- with :
13- fetch-depth : 0 # This causes all history to be fetched, which is required for calculate-version to function
14-
15- - name : Install Python 3.10
16- uses : actions/setup-python@v5
17- with :
18- python-version : " 3.10"
19-
20- - name : Update apt repositories
21- run : sudo apt update
22-
23- - name : Upgrade python packaging tools
24- run : python -m pip install --upgrade pip setuptools wheel
25-
26- - name : Install poetry
27- run : pip install poetry
28-
29- - name : Cache poetry packages
30- uses : actions/cache@v4
31- with :
32- path : ~/.cache/pypoetry
33- key : ${{ runner.os }}-build-cache-poetry-packages-${{ hashFiles('**/poetry.lock') }}
34-
35- - name : Install python packages
36- run : poetry install
37-
38- - name : Set SPEC_VERSION env var
39- run : echo ::set-env name=SPEC_VERSION::$(poetry run python scripts/calculate_version.py)
40- env :
41- ACTIONS_ALLOW_UNSECURE_COMMANDS : true
42-
43- - name : Create release (master only)
44- id : create-release
45- if : github.ref == 'refs/heads/master'
46- uses : actions/create-release@v1
47- continue-on-error : true
48- env :
49- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50- with :
51- tag_name : ${{ env.SPEC_VERSION }}
52- release_name : ${{ env.SPEC_VERSION }}
6+ build :
7+ name : build
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
12+ with :
13+ fetch-depth : 0 # This causes all history to be fetched, which is required for calculate-version to function
14+
15+ - name : Install Python 3.10
16+ uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
17+ with :
18+ python-version : " 3.10"
19+
20+ - name : Update apt repositories
21+ run : sudo apt update
22+
23+ - name : Upgrade python packaging tools
24+ run : python -m pip install --upgrade pip setuptools wheel
25+
26+ - name : Install poetry
27+ run : pip install poetry
28+
29+ - name : Cache poetry packages
30+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
31+ with :
32+ path : ~/.cache/pypoetry
33+ key : ${{ runner.os }}-build-cache-poetry-packages-${{ hashFiles('**/poetry.lock') }}
34+
35+ - name : Install python packages
36+ run : poetry install
37+
38+ - name : Set SPEC_VERSION env var
39+ run : echo ::set-env name=SPEC_VERSION::$(poetry run python scripts/calculate_version.py)
40+ env :
41+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
42+
43+ - name : Create release (master only)
44+ id : create-release
45+ if : github.ref == 'refs/heads/master'
46+ uses : actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
47+ continue-on-error : true
48+ env :
49+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50+ with :
51+ tag_name : ${{ env.SPEC_VERSION }}
52+ release_name : ${{ env.SPEC_VERSION }}
0 commit comments