Skip to content

Merge pull request #53 from COPRS/pcuq-ads-add-licence #327

Merge pull request #53 from COPRS/pcuq-ads-add-licence

Merge pull request #53 from COPRS/pcuq-ads-add-licence #327

Workflow file for this run

# Copyright 2023 CS Group
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: PS2 RS-ADDON build
on:
push:
branches:
- 'develop'
- 'main'
- 'release/**'
tags:
- "[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
- "[0-9]+.[0-9]+.[0-9]"
workflow_dispatch: { }
env:
REGISTRY_USER: ${{ secrets.ARTIFACTORY_USER }}
REGISTRY_PWD: ${{ secrets.ARTIFACTORY_PASSWORD }}
REGISTRY_BASE: artifactory.coprs.esa-copernicus.eu
REGISTRY_PROJECT: rs-zip-private
REGISTRY_FOLDER: rs-addons/s2
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all history so multiple commits can be scanned
- name: Build S2_L0U
uses: baileyjm02/markdown-to-pdf@v1
with:
input_path: rs-addons/S2_L0U/Release_Note.md
output_dir: rs-addons/S2_L0U/
table_of_contents: false
build_html: false
- name: Build S2_L0C
uses: baileyjm02/markdown-to-pdf@v1
with:
input_path: rs-addons/S2_L0C/Release_Note.md
output_dir: rs-addons/S2_L0C/
table_of_contents: false
build_html: false
- name: Build S2_L1
uses: baileyjm02/markdown-to-pdf@v1
with:
input_path: rs-addons/S2_L1/Release_Note.md
output_dir: rs-addons/S2_L1/
table_of_contents: false
build_html: false
- name: Build S2_L2
uses: baileyjm02/markdown-to-pdf@v1
with:
input_path: rs-addons/S2_L2/Release_Note.md
output_dir: rs-addons/S2_L2/
table_of_contents: false
build_html: false
- uses: actions/upload-artifact@v3
with:
name: release-notes
path: |
rs-addons/S2_L0U/Release_Note.pdf
rs-addons/S2_L0C/Release_Note.pdf
rs-addons/S2_L1/Release_Note.pdf
rs-addons/S2_L2/Release_Note.pdf
- name: Set up env
run: |
# Artifactory
echo "REGISTRY_USER=${{ env.REGISTRY_USER }}" >> $GITHUB_ENV
echo "REGISTRY_PWD=${{ env.REGISTRY_PWD }}" >> $GITHUB_ENV
echo "REGISTRY_BASE=${{ env.REGISTRY_BASE }}" >> $GITHUB_ENV
echo "REGISTRY_PROJECT=${{ env.REGISTRY_PROJECT }}" >> $GITHUB_ENV
echo "REGISTRY_FOLDER=${{ env.REGISTRY_FOLDER }}" >> $GITHUB_ENV
- name: Build rs-addons and push
run: |
cd rs-addons
./build_addons.sh push