2020-06-25 01:43:25 +02:00
|
|
|
name: Create Release Draft
|
|
|
|
|
|
|
|
on:
|
2021-11-15 21:04:00 +01:00
|
|
|
workflow_dispatch:
|
2020-06-25 01:43:25 +02:00
|
|
|
push:
|
2021-11-30 19:11:01 +01:00
|
|
|
tags: ["[0-9]+.[0-9]+.[0-9]+*"]
|
2020-06-25 01:43:25 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
name: Build Linux
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Install libxcb
|
|
|
|
run: sudo apt-get install libxcb-composite0-dev
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Set up cargo
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Build
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
2020-09-02 06:17:06 +02:00
|
|
|
args: --release --all --features=extra
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu)
|
|
|
|
# run: strip target/release/nu
|
2021-11-15 22:01:25 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_inc)
|
|
|
|
# run: strip target/release/nu_plugin_inc
|
2021-11-15 22:01:25 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_match)
|
|
|
|
# run: strip target/release/nu_plugin_match
|
2021-11-15 20:47:46 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_textview)
|
|
|
|
# run: strip target/release/nu_plugin_textview
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_binaryview)
|
|
|
|
# run: strip target/release/nu_plugin_binaryview
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_chart_bar)
|
|
|
|
# run: strip target/release/nu_plugin_chart_bar
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_chart_line)
|
|
|
|
# run: strip target/release/nu_plugin_chart_line
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_from_bson)
|
|
|
|
# run: strip target/release/nu_plugin_from_bson
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_from_sqlite)
|
|
|
|
# run: strip target/release/nu_plugin_from_sqlite
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_from_mp4)
|
|
|
|
# run: strip target/release/nu_plugin_from_mp4
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_query_json)
|
|
|
|
# run: strip target/release/nu_plugin_query_json
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_s3)
|
|
|
|
# run: strip target/release/nu_plugin_s3
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_selector)
|
|
|
|
# run: strip target/release/nu_plugin_selector
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_start)
|
|
|
|
# run: strip target/release/nu_plugin_start
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_to_bson)
|
|
|
|
# run: strip target/release/nu_plugin_to_bson
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_to_sqlite)
|
|
|
|
# run: strip target/release/nu_plugin_to_sqlite
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_tree)
|
|
|
|
# run: strip target/release/nu_plugin_tree
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_xpath)
|
|
|
|
# run: strip target/release/nu_plugin_xpath
|
2021-11-15 23:19:44 +01:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Create output directory
|
|
|
|
run: mkdir output
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Copy files to output
|
|
|
|
run: |
|
|
|
|
cp target/release/nu target/release/nu_plugin_* output/
|
|
|
|
cp README.build.txt output/README.txt
|
2020-07-01 00:45:42 +02:00
|
|
|
cp LICENSE output/LICENSE
|
2020-06-25 01:43:25 +02:00
|
|
|
rm output/*.d
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
# Note: If OpenSSL changes, this path will need to be updated
|
|
|
|
- name: Copy OpenSSL to output
|
|
|
|
run: cp /usr/lib/x86_64-linux-gnu/libssl.so.1.1 output/
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: linux
|
|
|
|
path: output/*
|
|
|
|
|
|
|
|
macos:
|
|
|
|
name: Build macOS
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Set up cargo
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Build
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
2020-09-02 06:17:06 +02:00
|
|
|
args: --release --all --features=extra
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu)
|
|
|
|
# run: strip target/release/nu
|
2021-11-15 22:32:48 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_inc)
|
|
|
|
# run: strip target/release/nu_plugin_inc
|
2021-11-15 22:32:48 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_match)
|
|
|
|
# run: strip target/release/nu_plugin_match
|
2021-11-15 22:32:48 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_textview)
|
|
|
|
# run: strip target/release/nu_plugin_textview
|
2021-11-15 23:19:44 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_binaryview)
|
|
|
|
# run: strip target/release/nu_plugin_binaryview
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_chart_bar)
|
|
|
|
# run: strip target/release/nu_plugin_chart_bar
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_chart_line)
|
|
|
|
# run: strip target/release/nu_plugin_chart_line
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_from_bson)
|
|
|
|
# run: strip target/release/nu_plugin_from_bson
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_from_sqlite)
|
|
|
|
# run: strip target/release/nu_plugin_from_sqlite
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_from_mp4)
|
|
|
|
# run: strip target/release/nu_plugin_from_mp4
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_query_json)
|
|
|
|
# run: strip target/release/nu_plugin_query_json
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_s3)
|
|
|
|
# run: strip target/release/nu_plugin_s3
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_selector)
|
|
|
|
# run: strip target/release/nu_plugin_selector
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_start)
|
|
|
|
# run: strip target/release/nu_plugin_start
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_to_bson)
|
|
|
|
# run: strip target/release/nu_plugin_to_bson
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_to_sqlite)
|
|
|
|
# run: strip target/release/nu_plugin_to_sqlite
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_tree)
|
|
|
|
# run: strip target/release/nu_plugin_tree
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_xpath)
|
|
|
|
# run: strip target/release/nu_plugin_xpath
|
2021-11-15 20:47:46 +01:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Create output directory
|
|
|
|
run: mkdir output
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Copy files to output
|
|
|
|
run: |
|
|
|
|
cp target/release/nu target/release/nu_plugin_* output/
|
|
|
|
cp README.build.txt output/README.txt
|
2020-07-01 00:45:42 +02:00
|
|
|
cp LICENSE output/LICENSE
|
2020-06-25 01:43:25 +02:00
|
|
|
rm output/*.d
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: macos
|
|
|
|
path: output/*
|
|
|
|
|
|
|
|
windows:
|
|
|
|
name: Build Windows
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Set up cargo
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 19:51:50 +02:00
|
|
|
- name: Add cargo-wix subcommand
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: install
|
2022-01-18 18:51:21 +01:00
|
|
|
args: cargo-wix --version 0.3.1
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Build
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
2020-09-02 06:17:06 +02:00
|
|
|
args: --release --all --features=extra
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu.exe)
|
|
|
|
# run: strip target/release/nu.exe
|
2021-11-15 22:32:48 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_inc.exe)
|
|
|
|
# run: strip target/release/nu_plugin_inc.exe
|
2021-11-15 22:32:48 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_match.exe)
|
|
|
|
# run: strip target/release/nu_plugin_match.exe
|
2021-11-15 22:32:48 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_textview.exe)
|
|
|
|
# run: strip target/release/nu_plugin_textview.exe
|
2021-11-15 23:19:44 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_binaryview.exe)
|
|
|
|
# run: strip target/release/nu_plugin_binaryview.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_chart_bar.exe)
|
|
|
|
# run: strip target/release/nu_plugin_chart_bar.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_chart_line.exe)
|
|
|
|
# run: strip target/release/nu_plugin_chart_line.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_from_bson.exe)
|
|
|
|
# run: strip target/release/nu_plugin_from_bson.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_from_sqlite.exe)
|
|
|
|
# run: strip target/release/nu_plugin_from_sqlite.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_from_mp4.exe)
|
|
|
|
# run: strip target/release/nu_plugin_from_mp4.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_query_json.exe)
|
|
|
|
# run: strip target/release/nu_plugin_query_json.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_s3.exe)
|
|
|
|
# run: strip target/release/nu_plugin_s3.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_selector.exe)
|
|
|
|
# run: strip target/release/nu_plugin_selector.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_start.exe)
|
|
|
|
# run: strip target/release/nu_plugin_start.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_to_bson.exe)
|
|
|
|
# run: strip target/release/nu_plugin_to_bson.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_to_sqlite.exe)
|
|
|
|
# run: strip target/release/nu_plugin_to_sqlite.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_tree.exe)
|
|
|
|
# run: strip target/release/nu_plugin_tree.exe
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2021-11-30 20:34:16 +01:00
|
|
|
# - name: Strip binaries (nu_plugin_xpath.exe)
|
|
|
|
# run: strip target/release/nu_plugin_xpath.exe
|
2021-11-15 22:32:48 +01:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Create output directory
|
|
|
|
run: mkdir output
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 23:08:20 +02:00
|
|
|
- name: Download Less Binary
|
2020-07-01 00:45:42 +02:00
|
|
|
run: Invoke-WebRequest -Uri "https://github.com/jftuga/less-Windows/releases/download/less-v562.0/less.exe" -OutFile "target\release\less.exe"
|
|
|
|
|
|
|
|
- name: Download Less License
|
2020-07-02 06:25:07 +02:00
|
|
|
run: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/jftuga/less-Windows/master/LICENSE" -OutFile "target\release\LICENSE-for-less.txt"
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Copy files to output
|
|
|
|
run: |
|
|
|
|
cp target\release\nu.exe output\
|
2020-07-01 00:45:42 +02:00
|
|
|
cp LICENSE output\
|
|
|
|
cp target\release\LICENSE-for-less.txt output\
|
2020-06-25 01:43:25 +02:00
|
|
|
cp target\release\nu_plugin_*.exe output\
|
|
|
|
cp README.build.txt output\README.txt
|
2020-06-25 23:08:20 +02:00
|
|
|
cp target\release\less.exe output\
|
2020-06-25 01:43:25 +02:00
|
|
|
# Note: If the version of `less.exe` needs to be changed, update this URL
|
|
|
|
# Similarly, if `less.exe` is checked into the repo, copy from the local path here
|
2020-06-25 21:30:07 +02:00
|
|
|
# moved this stuff down to create wix after we download less
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 21:30:07 +02:00
|
|
|
- name: Create msi with wix
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: wix
|
|
|
|
args: --no-build --nocapture --output target\wix\nushell-windows.msi
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 21:30:07 +02:00
|
|
|
- name: Upload installer
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: windows-installer
|
2020-06-25 23:06:33 +02:00
|
|
|
path: target\wix\nushell-windows.msi
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 23:28:09 +02:00
|
|
|
- name: Upload zip
|
2020-06-25 21:30:07 +02:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-06-26 04:34:39 +02:00
|
|
|
name: windows-zip
|
2020-06-26 05:24:45 +02:00
|
|
|
path: output\*
|
2020-06-25 01:43:25 +02:00
|
|
|
|
|
|
|
release:
|
|
|
|
name: Publish Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs:
|
|
|
|
- linux
|
|
|
|
- macos
|
|
|
|
- windows
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Determine Release Info
|
|
|
|
id: info
|
|
|
|
env:
|
|
|
|
GITHUB_REF: ${{ github.ref }}
|
|
|
|
run: |
|
|
|
|
VERSION=${GITHUB_REF##*/}
|
|
|
|
MAJOR=${VERSION%%.*}
|
|
|
|
MINOR=${VERSION%.*}
|
|
|
|
MINOR=${MINOR#*.}
|
|
|
|
PATCH=${VERSION##*.}
|
|
|
|
echo "::set-output name=version::${VERSION}"
|
|
|
|
echo "::set-output name=linuxdir::nu_${MAJOR}_${MINOR}_${PATCH}_linux"
|
|
|
|
echo "::set-output name=macosdir::nu_${MAJOR}_${MINOR}_${PATCH}_macOS"
|
|
|
|
echo "::set-output name=windowsdir::nu_${MAJOR}_${MINOR}_${PATCH}_windows"
|
|
|
|
echo "::set-output name=innerdir::nushell-${VERSION}"
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Create Release Draft
|
|
|
|
id: create_release
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
tag_name: ${{ github.ref }}
|
|
|
|
release_name: ${{ steps.info.outputs.version }} Release
|
|
|
|
draft: true
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Create Linux Directory
|
|
|
|
run: mkdir -p ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Download Linux Artifacts
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: linux
|
|
|
|
path: ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Restore Linux File Modes
|
|
|
|
run: |
|
|
|
|
chmod 755 ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}/nu*
|
|
|
|
chmod 755 ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}/libssl*
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Create Linux tarball
|
|
|
|
run: tar -zcvf ${{ steps.info.outputs.linuxdir }}.tar.gz ${{ steps.info.outputs.linuxdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Upload Linux Artifact
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
|
asset_path: ./${{ steps.info.outputs.linuxdir }}.tar.gz
|
|
|
|
asset_name: ${{ steps.info.outputs.linuxdir }}.tar.gz
|
|
|
|
asset_content_type: application/gzip
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Create macOS Directory
|
|
|
|
run: mkdir -p ${{ steps.info.outputs.macosdir }}/${{ steps.info.outputs.innerdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Download macOS Artifacts
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: macos
|
|
|
|
path: ${{ steps.info.outputs.macosdir }}/${{ steps.info.outputs.innerdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Restore macOS File Modes
|
|
|
|
run: chmod 755 ${{ steps.info.outputs.macosdir }}/${{ steps.info.outputs.innerdir }}/nu*
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Create macOS Archive
|
|
|
|
run: zip -r ${{ steps.info.outputs.macosdir }}.zip ${{ steps.info.outputs.macosdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Upload macOS Artifact
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
|
asset_path: ./${{ steps.info.outputs.macosdir }}.zip
|
|
|
|
asset_name: ${{ steps.info.outputs.macosdir }}.zip
|
|
|
|
asset_content_type: application/zip
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Create Windows Directory
|
|
|
|
run: mkdir -p ${{ steps.info.outputs.windowsdir }}/${{ steps.info.outputs.innerdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 22:08:59 +02:00
|
|
|
- name: Download Windows zip
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: windows-zip
|
2020-06-25 01:43:25 +02:00
|
|
|
path: ${{ steps.info.outputs.windowsdir }}/${{ steps.info.outputs.innerdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-25 01:43:25 +02:00
|
|
|
- name: Show Windows Artifacts
|
|
|
|
run: ls -la ${{ steps.info.outputs.windowsdir }}/${{ steps.info.outputs.innerdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-26 05:24:45 +02:00
|
|
|
- name: Create macOS Archive
|
|
|
|
run: zip -r ${{ steps.info.outputs.windowsdir }}.zip ${{ steps.info.outputs.windowsdir }}
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-26 05:24:45 +02:00
|
|
|
- name: Upload Windows zip
|
2020-06-25 22:08:59 +02:00
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
2020-06-26 05:55:18 +02:00
|
|
|
asset_path: ./${{ steps.info.outputs.windowsdir }}.zip
|
2020-06-26 05:24:45 +02:00
|
|
|
asset_name: ${{ steps.info.outputs.windowsdir }}.zip
|
|
|
|
asset_content_type: application/zip
|
2020-07-01 00:45:42 +02:00
|
|
|
|
2020-06-26 05:24:45 +02:00
|
|
|
- name: Download Windows installer
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: windows-installer
|
|
|
|
path: ./
|
2021-11-30 19:11:01 +01:00
|
|
|
|
2020-06-26 05:24:45 +02:00
|
|
|
- name: Upload Windows installer
|
2020-06-25 22:08:59 +02:00
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
2020-06-26 05:24:45 +02:00
|
|
|
asset_path: ./nushell-windows.msi
|
|
|
|
asset_name: ${{ steps.info.outputs.windowsdir }}.msi
|
2021-07-22 19:42:11 +02:00
|
|
|
asset_content_type: application/x-msi
|