|
7 | 7 | - stable |
8 | 8 | paths: |
9 | 9 | - '**.py' |
10 | | - - 'rr_cache/data/**' |
11 | 10 | - '!tests/**' |
12 | 11 |
|
13 | 12 |
|
14 | 13 | jobs: |
15 | 14 |
|
16 | | - Build-Recipe: |
17 | | - runs-on: ubuntu-latest |
18 | | - steps: |
19 | | - - uses: actions/checkout@v2 |
20 | | - - name: Installing make |
21 | | - run: | |
22 | | - sudo apt-get update |
23 | | - sudo apt-get -y install make |
24 | | - - name: Checkout CI/CD Toolkit |
25 | | - uses: actions/checkout@v2 |
26 | | - with: |
27 | | - repository: breakthewall/cicd-toolkit |
28 | | - path: cicd-toolkit |
29 | | - persist-credentials: false |
30 | | - fetch-depth: 0 |
31 | | - - name: Building recipe |
32 | | - run: | |
33 | | - cd cicd-toolkit |
34 | | - make -C makefiles -f conda.mk build-recipe |
35 | | - - name: Saving recipe |
36 | | - uses: actions/upload-artifact@v4 |
37 | | - with: |
38 | | - name: recipe |
39 | | - path: cicd-toolkit/recipe/meta.yaml |
40 | | - |
41 | | - Conda-Build: |
42 | | - needs: [Build-Recipe] |
43 | | - runs-on: ${{ matrix.os }}-latest |
44 | | - strategy: |
45 | | - matrix: |
46 | | - os: ["ubuntu", "windows", "macos"] |
47 | | - defaults: |
48 | | - run: |
49 | | - shell: bash -l {0} |
50 | | - steps: |
51 | | - - uses: actions/checkout@v2 |
52 | | - - name: Checkout CI/CD Toolkit |
53 | | - uses: actions/checkout@v2 |
54 | | - with: |
55 | | - repository: breakthewall/cicd-toolkit |
56 | | - path: cicd-toolkit |
57 | | - persist-credentials: false |
58 | | - fetch-depth: 0 |
59 | | - - name: Loading recipe |
60 | | - uses: actions/download-artifact@v4 |
61 | | - with: |
62 | | - name: recipe |
63 | | - path: cicd-toolkit/recipe |
64 | | - - name: Deploying miniconda |
65 | | - uses: conda-incubator/setup-miniconda@v2 |
66 | | - with: |
67 | | - miniconda-version: "latest" |
68 | | - environment-file: cicd-toolkit/recipe/conda_build_env.yaml |
69 | | - activate-environment: test |
70 | | - - name: Building & Testing conda package |
71 | | - run: | |
72 | | - conda-build cicd-toolkit/recipe |
73 | | -
|
74 | 15 | Tag: |
75 | | - needs: [Conda-Build] |
| 16 | + # needs: [Conda-Build] |
76 | 17 | runs-on: ubuntu-latest |
77 | 18 | outputs: # Create variable usable from another job |
78 | 19 | new_tag: ${{ steps.tag_version.outputs.new_tag }} |
79 | 20 | steps: |
80 | 21 | ## CREATE TAG/RELEASE |
81 | | - - uses: actions/checkout@v2 |
| 22 | + - uses: actions/checkout@v3 |
82 | 23 | with: |
83 | 24 | persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. |
84 | 25 | fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. |
|
98 | 39 | env: |
99 | 40 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
100 | 41 | ## UPDATE CHANGELOG |
101 | | - - uses: actions/checkout@v2 |
| 42 | + - uses: actions/checkout@v3 |
102 | 43 | with: |
103 | 44 | persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. |
104 | 45 | fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. |
|
0 commit comments