2.7.23 #103
Workflow file for this run
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: Build and Deploy | |
on: | |
release: | |
types: [ published, prereleased ] | |
jobs: | |
build: | |
name: Create And Upload Release | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@master | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Build release | |
run: | | |
chmod +x deploy.sh | |
./deploy.sh ${{ steps.get_version.outputs.VERSION }} | |
- name: Upload Sandbox Release | |
uses: JasonEtco/upload-to-release@master | |
with: | |
args: release/Mission_sandbox_v${{ steps.get_version.outputs.VERSION }}.zip application/zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Upload Sandbox No Radio Release | |
# uses: JasonEtco/upload-to-release@master | |
# with: | |
# args: release/Mission_sandbox_noradio_v${{ steps.get_version.outputs.VERSION }}.zip application/zip | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Uploading to Server | |
if: "!github.event.release.prerelease" | |
uses: Dylan700/sftp-upload-action@latest | |
with: | |
server: ${{ secrets.SERVER }} | |
username: ${{ secrets.SERVER_USER }} | |
password: ${{ secrets.SERVER_PASSWORD }} | |
port: 22 | |
uploads: | | |
./server_missions/ => ./profiling-Core_OCT_2024/. |