github-actions

How to build Flutter in GitHub Actions CI/CD

家住魔仙堡 提交于 2019-12-24 03:52:29
问题 I'm trying out GitHub Actions to build my Flutter app but I don't know which container image to choose from. Is there a trusted container image that I can use for Flutter? What are the adjustments I need to make so that the Flutter SDK is available during my build step? Run flutter pub get /__w/_temp/46389e95-36bc-464e-ab34-41715eb4dccb.sh: 1: /__w/_temp/46389e95-36bc-464e-ab34-41715eb4dccb.sh: flutter: not found ##[error]Process completed with exit code 127. I adapted the dart.yml file

How to build Flutter in GitHub Actions CI/CD

蓝咒 提交于 2019-12-24 03:52:09
问题 I'm trying out GitHub Actions to build my Flutter app but I don't know which container image to choose from. Is there a trusted container image that I can use for Flutter? What are the adjustments I need to make so that the Flutter SDK is available during my build step? Run flutter pub get /__w/_temp/46389e95-36bc-464e-ab34-41715eb4dccb.sh: 1: /__w/_temp/46389e95-36bc-464e-ab34-41715eb4dccb.sh: flutter: not found ##[error]Process completed with exit code 127. I adapted the dart.yml file

Need to set environment in github actions

爷,独闯天下 提交于 2019-12-24 03:36:14
问题 I need to install a couple of cli's every time the workflow runs, it takes up a lot of time in installation and then building and publishing the package. What are some good alternatives to get rid of installation every time? 回答1: To expand on the answer by @joseph, create a Docker image that prepares an environment with the CLI tools that you need and then publish it to DockerHub. Take care not to include any secrets as the image must be public for GitHub Actions to make use of it. In your

New GitHub actions run in empty folders

偶尔善良 提交于 2019-12-24 00:46:25
问题 I am working with new GitHub actions, idea of a workflow below is to run when pr is opened or synchronised, it should first check out and install dependencies and afterwards run few yarn scripts name: PR to Master on: pull_request: branches: - master jobs: # Synchronize or Opened synchronized_or_opened: name: Synchronize or Opened runs-on: ubuntu-latest steps: - uses: actions/bin/filter@master with: args: action 'opened|synchronize' # Add Labels add_labels: name: Add Labels runs-on: ubuntu

Create GitHub actions that use powershell scripts

纵然是瞬间 提交于 2019-12-23 09:47:54
问题 I'd like to create a GitHub action that sets up an environment in Windows, running a few Powershell commands. Despite this can be done easily as a step, there does not seem to be a way to create a complete GitHub action for that. If I use this: name: 'Rakudo Star fix for windows' description: 'Updates zef for RakudoStar' author: 'JJ' runs: using: 'node12' main: 'upgrade.ps1' There does not seem a way to run anything other than a JS script, or even to declare the environment. I understand that

Using github actions to publish documentation

人盡茶涼 提交于 2019-12-21 22:04:16
问题 What I considered: github offers github pages to host documentation in either a folder on my master branch or a dedicated gh-pages branch, but that would mean to commit build artifacts I can also let readthedocs build and host docs for me through webhooks, but that means learning how to configure Yet Another Tool at a point in time where I try to consolidate everything related to my project in github-actions I already have a docu-building process that works for me (using sphinx as the builder

How to execute a bash-script from a java script

主宰稳场 提交于 2019-12-11 08:22:03
问题 I would like to share GitHub actions between some of my repositories which now contain a release bash script in each repository. In order to be able to run the same script, I need a Github Action in order to do that. I have little knowledge of javascript and am unable to rewrite the simple hello world javascript action (https://github.com/actions/hello-world-javascript-action/blob/master/index.js) to run a bash script. The idea of using a javascript as an action is preferred because of its

How do I install private packages using yarn inside a Github Action?

时光毁灭记忆、已成空白 提交于 2019-12-10 15:47:51
问题 My current workflow: name: Node CI on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [10.x] steps: - uses: actions/checkout@v1 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - name: npm install, build, and test run: | npm install yarn -g yarn yarn test env: CI: true NPM_TOKEN: ${{ secrets.NPM_TOKEN }} I have setup my NPM_TOKEN in the repo secrets area. The token is also in use on Netlify,

How do I use Docker with GitHub Actions?

早过忘川 提交于 2019-12-10 10:25:59
问题 When I create a GitHub Actions workflow file, the example YAML file contains runs-on: ubuntu-latest . According to the docs, I only have the options between a couple versions of Ubuntu, Windows Server and macOS X. I thought GitHub Actions runs inside Docker. How do I choose my Docker image? 回答1: A job (as part of a workflow ) runs inside a virtual machine. You choose one of the environments provided by them (e.g. ubuntu-latest or windows-2019 ). A job consists of one or more steps . A step

GitHub Actions - empty env secrets

亡梦爱人 提交于 2019-12-08 02:04:11
问题 I've started playing with GitHub actions, but I'm struggling with accessing repository secrets which I pass as env's. My workflow file: name: Invite on: pull_request: branches: [master] types: [closed] jobs: invite: runs-on: ubuntu-latest steps: - name: Hello world action uses: lekterable/inclusive-organization-action@master env: SECRET_TOKEN: ${{ secrets.SECRET_TOKEN }} organization: string SUPER_SECRET: ${{ secrets.SUPER_SECRET }} action index file const core = require('@actions/core')