Update OmicSelector_create_formula.R #97
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
on: | |
push: | |
branches: master | |
name: R package (Windows) | |
jobs: | |
Rpackage: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: OmicSelector | |
miniconda-version: "latest" | |
- name: Install enviorment | |
shell: bash -l {0} | |
run: | | |
pwd | |
conda update --all | |
conda install --channel "conda-forge" --channel "anaconda" --channel "r" conda-pack r-base r-rjava rtools pandoc | |
echo 'options(repos = c(CRAN = "https://packagemanager.rstudio.com/cran/latest"));' >> ~/.Rprofile | |
Rscript -e 'update.packages(ask = F); install.packages(c("devtools","remotes"));' | |
Rscript -e 'devtools::source_url("https://raw.githubusercontent.com/kstawiski/OmicSelector/master/vignettes/setup.R")' | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install package | |
shell: bash -l {0} | |
run: R CMD INSTALL . | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check loading | |
shell: bash -l {0} | |
run: | | |
Rscript -e 'library(OmicSelector); sessionInfo();' | |
- name: Pack env | |
shell: bash -l {0} | |
run: | | |
conda pack -n OmicSelector -o OmicSelector_conda_pack_win.tar.gz | |
- name: Delete prev Win release | |
uses: dev-drprasad/delete-tag-and-release@v1.0 | |
with: | |
delete_release: true # default: false | |
tag_name: release-win | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
OmicSelector_conda_pack_win.tar.gz | |
body: "OmicSelector for Windows - latest version packed as [conda-pack](https://conda.github.io/conda-pack/) and source code." | |
name: Latest conda-pack (Windows) | |
tag_name: release-win | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: 📂 Upload to deploy.konsta.com.pl | |
uses: SamKirkland/FTP-Deploy-Action@4.0.0 | |
with: | |
server: konsta.com.pl | |
username: deploy | |
password: ${{ secrets.PASSWORD }} | |
server-dir: ./Deploy/OmicSelector-win/ |