Update RELEASE_VERSION #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Releases | |
on: | |
push: | |
branches: ['UE5.4'] | |
paths: ['RELEASE_VERSION'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./ | |
permissions: | |
contents: write | |
steps: | |
- name: "Checkout source code" | |
uses: actions/checkout@v3 | |
- name: Read the RELEASE_VERSION file | |
id: getversion | |
run: echo "version=$(cat RELEASE_VERSION)" >> $GITHUB_OUTPUT | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install library deps | |
working-directory: ./Frontend/library | |
run: npm ci | |
- name: Build frontend lib | |
working-directory: ./Frontend/library | |
run: npm run build | |
- name: Install ui-library deps | |
working-directory: ./Frontend/ui-library | |
run: npm ci | |
- name: NPM link frontend lib into ui-library | |
working-directory: ./Frontend/ui-library | |
run: npm link ../library | |
- name: Build frontend ui-library | |
working-directory: ./Frontend/ui-library | |
run: npm run build-all | |
- name: Install implementations/typescript deps | |
working-directory: ./Frontend/implementations/typescript | |
run: npm ci | |
- name: NPM link frontend and ui-library into implementations/typescript | |
working-directory: ./Frontend/implementations/typescript | |
run: npm link ../../library ../../ui-library | |
- name: Build implementations/typescript | |
working-directory: ./Frontend/implementations/typescript | |
run: npm run build-all | |
- name: Move all content into output directory for archiving | |
run: items=(*) && mkdir PixelStreamingInfrastructure-${{ github.ref_name }}-${{ steps.getversion.outputs.version }} && mv ${items[*]} PixelStreamingInfrastructure-${{ github.ref_name }}-${{ steps.getversion.outputs.version }}/ | |
- name: Archive Release tar.gz | |
uses: thedoctor0/[email protected] | |
with: | |
directory: '.' | |
path: 'PixelStreamingInfrastructure-${{ github.ref_name }}-${{ steps.getversion.outputs.version }}' | |
type: 'tar' | |
filename: '${{ github.ref_name }}-${{ steps.getversion.outputs.version }}.tar.gz' | |
exclusions: '.git .github output Frontend/Docs Frontend/library/dist Frontend/library/types Frontend/library/node_modules Frontend/ui-library/dist Frontend/ui-library/types Frontend/ui-library/node_modules Frontend/implementations/typescript/node_modules' | |
- name: Archive Release .zip | |
uses: thedoctor0/[email protected] | |
with: | |
directory: '.' | |
path: 'PixelStreamingInfrastructure-${{ github.ref_name }}-${{ steps.getversion.outputs.version }}' | |
type: 'zip' | |
filename: '${{ github.ref_name }}-${{ steps.getversion.outputs.version }}.zip' | |
exclusions: '*.git* /*node_modules/* .editorconfig /*types/* /*dist/* /*output/* /*Docs/*' | |
- name: "Make the release" | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: "${{ github.ref_name }}-${{ steps.getversion.outputs.version }}" | |
artifacts: "${{ github.ref_name }}-${{ steps.getversion.outputs.version }}.zip,${{ github.ref_name }}-${{ steps.getversion.outputs.version }}.tar.gz" | |
generateReleaseNotes: true |