Skip to content
This repository was archived by the owner on Sep 13, 2021. It is now read-only.

Commit 3cbfc00

Browse files
Merge 6f232aa into 764d25a
2 parents 764d25a + 6f232aa commit 3cbfc00

File tree

4 files changed

+93
-3
lines changed

4 files changed

+93
-3
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ See the `tests` folder for code examples used to test the built wheels' function
3333
- The python3 files for oiio at [vcpkg/ports/python3](https://github.com/Microsoft/vcpkg/tree/master/ports/python3)
3434
- The vcpkg files for oiio at [vcpkg/ports/openimageio](https://github.com/Microsoft/vcpkg/tree/master/ports/openimageio)
3535
- Get SHA512 of file:
36-
- macOS: `openssl dgst -sha512 [FILE]`
36+
- macOS: `openssl dgst -sha512 [FILE]`
37+
- Create release:
38+
1. Commit changes: `git commit -am "My changes"`
39+
2. Create tag: `git tag [oiio-version]+[yyyymmdd]` (e.g. `2.0.4+20190202`)
40+
3. Push tag: `git push origin [oiio-version]+[yyyymmdd]`
41+
4. Push changes: `git push`

macOS-10.13-azure-pipelines.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ jobs:
4242
architecture: 'x64'
4343
addToPath: true
4444

45+
# Create $(build.date) variable, to be used for GitHub release
46+
- bash: |
47+
DATE=`date +%Y%m%d`
48+
echo "##vso[task.setvariable variable=build.date]$DATE"
49+
displayName: Create build.date variable
50+
4551
# Make setup.py ready by substituting placeholders
4652
- bash: |
4753
cd $(src.python)
@@ -139,3 +145,25 @@ jobs:
139145
pip list
140146
pytest --verbose
141147
displayName: Run rudimental test(s)
148+
149+
# GitHub Release
150+
# Create, edit, or discard a GitHub release.
151+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/github-release?view=azdevops
152+
- task: GithubRelease@0
153+
inputs:
154+
gitHubConnection: 'oiio-python-releases'
155+
repositoryName: 'fredrikaverpil/oiio-python'
156+
action: 'edit' # Options: create, edit, discard
157+
target: '$(build.sourceVersion)' # Required when action == create || action == edit
158+
tagSource: 'Git tag' # Required when action == create. Options: auto, manual
159+
tag: '$(oiio.version)+$(build.date)' # Required when action == edit || action == discard || tagSource == manual
160+
#title: # Optional
161+
#releaseNotesSource: 'file' # Optional. Options: file, input
162+
#releaseNotesFile: # Optional
163+
#releaseNotes: # Optional
164+
# assets: '$(build.artifactStagingDirectory)/*' # Optional
165+
# assets: '$(Build.ArtifactStagingDirectory)' # Optional
166+
assetUploadMode: 'replace' # Optional. Options: delete, replace
167+
#isDraft: false # Optional
168+
#isPreRelease: false # Optional
169+
addChangeLog: false # Optional

ubuntu16.04-azure-pipelines.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ jobs:
4141
architecture: 'x64'
4242
addToPath: true
4343

44+
# Create $(build.date) variable, to be used for GitHub release
45+
- bash: |
46+
DATE=`date +%Y%m%d`
47+
echo "##vso[task.setvariable variable=build.date]$DATE"
48+
displayName: Create build.date variable
49+
4450
# Make setup.py ready by substituting placeholders
4551
- bash: |
4652
cd $(src.python)
@@ -146,4 +152,26 @@ jobs:
146152
pip install pytest
147153
pip list
148154
pytest --verbose
149-
displayName: Run rudimental test(s)
155+
displayName: Run rudimental test(s)
156+
157+
# GitHub Release
158+
# Create, edit, or discard a GitHub release.
159+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/github-release?view=azdevops
160+
- task: GithubRelease@0
161+
inputs:
162+
gitHubConnection: 'oiio-python-releases'
163+
repositoryName: 'fredrikaverpil/oiio-python'
164+
action: 'edit' # Options: create, edit, discard
165+
target: '$(build.sourceVersion)' # Required when action == create || action == edit
166+
tagSource: 'Git tag' # Required when action == create. Options: auto, manual
167+
tag: '$(oiio.version)+$(build.date)' # Required when action == edit || action == discard || tagSource == manual
168+
#title: # Optional
169+
#releaseNotesSource: 'file' # Optional. Options: file, input
170+
#releaseNotesFile: # Optional
171+
#releaseNotes: # Optional
172+
# assets: '$(build.artifactStagingDirectory)/*' # Optional
173+
# assets: '$(Build.ArtifactStagingDirectory)' # Optional
174+
assetUploadMode: 'replace' # Optional. Options: delete, replace
175+
#isDraft: false # Optional
176+
#isPreRelease: false # Optional
177+
addChangeLog: false # Optional

win2016-azure-pipelines.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
architecture: 'x64'
4141
addToPath: true
4242

43+
# Create $(build.date) variable, to be used for GitHub release
44+
- powershell: |
45+
$Date = Get-Date -format "yyyyMMdd"
46+
$DateStr = $Date.ToString()
47+
echo "##vso[task.setvariable variable=build.date]$DateStr"
48+
displayName: Create build.date variable
49+
4350
# Make setup.py ready by substituting placeholders
4451
- powershell: |
4552
cd $(src.python)
@@ -173,4 +180,26 @@ jobs:
173180
pip install pytest
174181
pip list
175182
pytest --verbose
176-
displayName: Run rudimental test(s)
183+
displayName: Run rudimental test(s)
184+
185+
# GitHub Release
186+
# Create, edit, or discard a GitHub release.
187+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/github-release?view=azdevops
188+
- task: GithubRelease@0
189+
inputs:
190+
gitHubConnection: 'oiio-python-releases'
191+
repositoryName: 'fredrikaverpil/oiio-python'
192+
action: 'edit' # Options: create, edit, discard
193+
target: '$(build.sourceVersion)' # Required when action == create || action == edit
194+
tagSource: 'Git tag' # Required when action == create. Options: auto, manual
195+
tag: '$(oiio.version)+$(build.date)' # Required when action == edit || action == discard || tagSource == manual
196+
#title: # Optional
197+
#releaseNotesSource: 'file' # Optional. Options: file, input
198+
#releaseNotesFile: # Optional
199+
#releaseNotes: # Optional
200+
# assets: '$(build.artifactStagingDirectory)/*' # Optional
201+
# assets: '$(Build.ArtifactStagingDirectory)' # Optional
202+
assetUploadMode: 'replace' # Optional. Options: delete, replace
203+
#isDraft: false # Optional
204+
#isPreRelease: false # Optional
205+
addChangeLog: false # Optional

0 commit comments

Comments
 (0)