|
@@ -71,36 +71,42 @@ const WorkflowPage: React.FC<PropsType> = (props) => {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<StyledWorkflowPage>
|
|
<StyledWorkflowPage>
|
|
|
|
|
+ <BackButton width="155px" onClick={() => props.setPage("source")}>
|
|
|
|
|
+ <i className="material-icons">first_page</i>
|
|
|
|
|
+ Source Settings
|
|
|
|
|
+ </BackButton>
|
|
|
<Heading>GitHub Actions</Heading>
|
|
<Heading>GitHub Actions</Heading>
|
|
|
<Helper>
|
|
<Helper>
|
|
|
To auto-deploy each time you push changes, Porter will write GitHub
|
|
To auto-deploy each time you push changes, Porter will write GitHub
|
|
|
- Secrets and a GitHub Actions workflow to your repository.
|
|
|
|
|
|
|
+ Secrets and this GitHub Actions workflow to your repository.
|
|
|
</Helper>
|
|
</Helper>
|
|
|
- {
|
|
|
|
|
- isExpanded && (
|
|
|
|
|
- <>
|
|
|
|
|
- {renderWorkflow()}
|
|
|
|
|
- <CheckboxRow
|
|
|
|
|
- toggle={() => props.setShouldCreateWorkflow((x: boolean) => !x)}
|
|
|
|
|
- checked={props.shouldCreateWorkflow}
|
|
|
|
|
- label="Create workflow file"
|
|
|
|
|
- />
|
|
|
|
|
- <Helper>
|
|
|
|
|
- You may copy the YAML to an existing workflow and uncheck this box to
|
|
|
|
|
- prevent Porter from creating a new workflow file.
|
|
|
|
|
- <GitHubActionLink show={!props.shouldCreateWorkflow}>
|
|
|
|
|
- The GitHub Action can be found at{" "}
|
|
|
|
|
- <a
|
|
|
|
|
- href="https://github.com/porter-dev/porter-update-action"
|
|
|
|
|
- target="_blank"
|
|
|
|
|
- >
|
|
|
|
|
- porter-dev/porter-update-action
|
|
|
|
|
- </a>
|
|
|
|
|
- </GitHubActionLink>
|
|
|
|
|
- </Helper>
|
|
|
|
|
- </>
|
|
|
|
|
- )
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ {renderWorkflow()}
|
|
|
|
|
+ <CheckboxRow
|
|
|
|
|
+ toggle={() => props.setShouldCreateWorkflow((x: boolean) => !x)}
|
|
|
|
|
+ checked={props.shouldCreateWorkflow}
|
|
|
|
|
+ label="Create workflow file"
|
|
|
|
|
+ />
|
|
|
|
|
+ <Helper>
|
|
|
|
|
+ You may copy the YAML to an existing workflow and uncheck this box to
|
|
|
|
|
+ prevent Porter from creating a new workflow file.
|
|
|
|
|
+ <GitHubActionLink show={!props.shouldCreateWorkflow}>
|
|
|
|
|
+ The GitHub Action can be found at{" "}
|
|
|
|
|
+ <a
|
|
|
|
|
+ href="https://github.com/porter-dev/porter-update-action"
|
|
|
|
|
+ target="_blank"
|
|
|
|
|
+ >
|
|
|
|
|
+ porter-dev/porter-update-action
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </GitHubActionLink>
|
|
|
|
|
+ </Helper>
|
|
|
|
|
+ <Buffer />
|
|
|
|
|
+ <SaveButton
|
|
|
|
|
+ text="Continue"
|
|
|
|
|
+ makeFlush={true}
|
|
|
|
|
+ disabled={hasError}
|
|
|
|
|
+ onClick={() => props.setPage("settings")}
|
|
|
|
|
+ helper={getButtonHelper()}
|
|
|
|
|
+ />
|
|
|
</StyledWorkflowPage>
|
|
</StyledWorkflowPage>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|