Skip to content

Commit cc2eee2

Browse files
authored
Merge pull request #138 from cta-observatory/testRelease
Test release
2 parents da7ca49 + 29e7b37 commit cc2eee2

File tree

2 files changed

+11
-26
lines changed

2 files changed

+11
-26
lines changed

.github/versionBackup.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.11.1
1+
0.12.0

.github/workflows/release.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
url: https://pypi.org/project/dl1-data-handler/
1313
permissions:
1414
id-token: write
15+
contents: write
16+
deployments: write
17+
statuses: write
18+
actions: write
19+
checks: read
1520
strategy:
1621
matrix:
1722
os: [ubuntu-22.04]
@@ -55,7 +60,7 @@ jobs:
5560
git status
5661
git add .
5762
git commit -m "version update" --allow-empty
58-
git push
63+
git push
5964
6065
- name: Build package
6166
run: |
@@ -73,6 +78,10 @@ jobs:
7378
permissions:
7479
id-token: write
7580
contents: write
81+
deployments: write
82+
statuses: write
83+
actions: write
84+
checks: read
7685
steps:
7786
- uses: actions/checkout@v4
7887
with:
@@ -92,30 +101,6 @@ jobs:
92101
conda env update --file environment.yml --name base
93102
sudo apt-get install python3-numpy
94103
95-
- name: Get version
96-
run: |
97-
output=$(python dl1_data_handler/versionScript.py)
98-
echo "version=$output" >> $GITHUB_OUTPUT
99-
id: step1
100-
101-
- name: Write
102-
uses: 1arp/create-a-file-action@0.4.5
103-
with:
104-
path: '.'
105-
isAbsolutePath: true
106-
file: '.github/versionBackup.txt'
107-
content: |
108-
${{ steps.step1.outputs.version }}
109-
110-
- name: Push changes
111-
run: |
112-
git config --global user.email "rcervino@ucm.es"
113-
git config --global user.name "rcervinoucm"
114-
git status
115-
git add .
116-
git commit -m "version update" --allow-empty
117-
git push
118-
119104
- name: publish-to-conda
120105
uses: fcakyon/conda-publish-action@v1.3
121106
with:

0 commit comments

Comments
 (0)